summaryrefslogtreecommitdiff
path: root/lib/gallery.in_place_edit.js
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-02-02 06:53:19 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-02-02 06:53:19 -0800
commit8a9301f756f5ed033bd86a9e275d6ed6e489c27f (patch)
tree23be7d67467e337742bf8fa4825834faf58eda9f /lib/gallery.in_place_edit.js
parenta10bdd8f0e436e8bb41430ca5d18fb2e1682773c (diff)
parentaa2e4de024a985f16beb8c1ad90daf0e668d2e28 (diff)
Merge branch 'master' into talmdal_dev
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() {