Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ep_author_hover

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ep_author_hover - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

package.json

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc