New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lightbox

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightbox - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

17

assets/scripts/lightbox.js

@@ -87,4 +87,5 @@ 'use strict';

* @param {string|jQuery} content
* @private
*/
show_content: function (content) {
_show_content: function (content) {
this.$content.empty().append(content);

@@ -142,3 +143,3 @@ this.$loader.hide();

if (matches !== null && this.localContent.hasOwnProperty(matches[1]))
this.show_content(this.localContent[matches[1]]);
this._show_content(this.localContent[matches[1]]);
else

@@ -151,3 +152,3 @@ $.ajax($.extend(true, {}, {

dataType: 'html',
success: this.show_content.bind(this)
success: this._show_content.bind(this)
}, ajaxOptions));

@@ -157,2 +158,12 @@ },

/**
* Show given HTML content or jQuery node in the lightbox
*
* @param {string|jQuery} content
*/
show_content: function (content) {
this.$over.stop().fadeIn(this.fd);
this._show_content(content);
},
/**
* Close the lightbox

@@ -159,0 +170,0 @@ */

2

package.json
{
"name": "lightbox",
"version": "0.4.0",
"version": "0.5.0",
"main": "assets/scripts/main.js",

@@ -5,0 +5,0 @@ "description": "Easy as <a href=\"/foo\" target=\"lightbox\">pie</a>",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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