Comparing version 0.4.0 to 0.5.0
@@ -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 @@ */ |
{ | ||
"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
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
831028
22560
3