summaryrefslogtreecommitdiff
path: root/lib/gallery.in_place_edit.js
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-02-01 22:45:39 -0800
committerBharat Mediratta <bharat@menalto.com>2010-02-01 22:45:39 -0800
commit4116c7bed1152cb34cc6298c04e0e1115eed4344 (patch)
tree7afc9eb027493520147d45e85a15dcd7c71eeb45 /lib/gallery.in_place_edit.js
parent469111d36a945b24bc5423d18fc19582b2bbb0a9 (diff)
parent519cc249c4e59e987af440a066f81271b29dd931 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'lib/gallery.in_place_edit.js')
-rw-r--r--lib/gallery.in_place_edit.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gallery.in_place_edit.js b/lib/gallery.in_place_edit.js
index 681688e5..c10400e3 100644
--- a/lib/gallery.in_place_edit.js
+++ b/lib/gallery.in_place_edit.js
@@ -10,6 +10,10 @@
},
_show: function(target) {
+ if ($(this).data("gallery_in_place_edit") == true) {
+ return;
+ }
+ $(this).data("gallery_in_place_edit", true);
var self = this;
var tag_width = $(target).width();
$(self).data("tag_width", tag_width);
@@ -42,6 +46,7 @@
$(parent).find("form").remove();
$(parent).children().show();
$("#g-in-place-edit-message").remove();
+ $(this).data("gallery_in_place_edit", false);
},
_ajaxify_edit: function() {