ep_author_hover
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -9,3 +9,3 @@ { | ||
"description": "Adds author names to span titles (shows on hover), works as authors change their name. Hover includes author color and fast switching between author spans. Hat tip to Martyn York for the initial work on this.", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"repository": { | ||
@@ -12,0 +12,0 @@ "type": "git", |
@@ -63,3 +63,3 @@ var _ = require('ep_etherpad-lite/static/js/underscore'); | ||
if(clientVars.plugins.plugins.ep_author_hover.enabled){ | ||
var authorId = showAuthor.authorIdFromClass(span.target.className); // Get the authorId | ||
var authorId = showAuthor.authorIdFromClass($(span.target).closest('span').get(0).className); // Get the authorId | ||
if(!authorId){ return; } // Default text isn't shown | ||
@@ -86,2 +86,3 @@ showAuthor.destroy(); // Destroy existing | ||
authorNameAndColorFromAuthorId: function(authorId){ | ||
var fullAuthorId = authorId; // historical data uses full author id without substing | ||
// todo figure out why we need a substring to fix this | ||
@@ -115,3 +116,3 @@ authorId = authorId.substring(0,14); // don't ask.... something appears to be fucked in regex | ||
if(!authorObj || !authorObj.name){ | ||
var authorObj = clientVars.collab_client_vars.historicalAuthorData[authorId]; // Try to use historical data | ||
var authorObj = clientVars.collab_client_vars.historicalAuthorData[fullAuthorId]; // Try to use historical data | ||
} | ||
@@ -118,0 +119,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7415
153