From f0f59549090c0b490f62641d755689bec33ca780 Mon Sep 17 00:00:00 2001 From: blocka Date: Mon, 11 Jun 2012 12:54:45 -0300 Subject: [PATCH 1/4] Upgrade `jQuery.delegate` with `jQuery.on` This fixes a weird conflict with plugin, jQuery.Validate and also future proofs it from this function being deprecated. --- jquery.lightbox_me.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.lightbox_me.js b/jquery.lightbox_me.js index aa24807..1cb3cc6 100644 --- a/jquery.lightbox_me.js +++ b/jquery.lightbox_me.js @@ -99,7 +99,7 @@ if (opts.closeClick) { $overlay.click(function(e) { closeLightbox(); e.preventDefault; }); } - $self.delegate(opts.closeSelector, "click", function(e) { + $self.on("click", opts.closeSelector, function(e) { closeLightbox(); e.preventDefault(); }); $self.bind('close', closeLightbox); From 381e77d85fcd507cc780b91b35c52b163d8e485f Mon Sep 17 00:00:00 2001 From: blocka Date: Sun, 9 Dec 2012 23:04:48 -0800 Subject: [PATCH 2/4] Create component.json --- component.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 component.json diff --git a/component.json b/component.json new file mode 100644 index 0000000..23d5991 --- /dev/null +++ b/component.json @@ -0,0 +1,7 @@ +{ + "name": "Lightbox_me", + "version": "1.0.0", + "dependencies": { + "jquery": "*" + } +} \ No newline at end of file From 1724daa3d299e466a39a0c517ad3ffb4944aab69 Mon Sep 17 00:00:00 2001 From: tutkun Date: Wed, 24 Apr 2013 17:16:28 +0300 Subject: [PATCH 3/4] Update jquery.lightbox_me.js --- jquery.lightbox_me.js | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/jquery.lightbox_me.js b/jquery.lightbox_me.js index 1cb3cc6..25fb376 100644 --- a/jquery.lightbox_me.js +++ b/jquery.lightbox_me.js @@ -27,7 +27,18 @@ opts = $.extend({}, $.fn.lightbox_me.defaults, options), $overlay = $(), $self = $(this), - $iframe = $('