diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-11-07 00:13:58 -0700 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-11-07 00:13:58 -0700 |
commit | 7b92df6a56c7f1f8bbbafabbadb4e796b1d2d14b (patch) | |
tree | b5e7ff0e34f11cdc74a7ca97b0886df27f29dce8 /lib/gallery.in_place_edit.js | |
parent | c9d38e606f188c33ced63ff5ee5f29c1413b9da5 (diff) | |
parent | 85e4497e16a33fddf943e6c506847d7354d527dd (diff) |
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'lib/gallery.in_place_edit.js')
-rw-r--r-- | lib/gallery.in_place_edit.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gallery.in_place_edit.js b/lib/gallery.in_place_edit.js index 38c4efb1..4a90581b 100644 --- a/lib/gallery.in_place_edit.js +++ b/lib/gallery.in_place_edit.js @@ -15,6 +15,13 @@ var tag_width = $(target).width(); $(self).data("tag_width", tag_width); + var form = $("#g-inplace-edit-form"); + if (form.length > 0) { + var parent = form.parent(); + form.remove(); + parent.children().show(); + } + $.get(self.options.form_url.replace("__ID__", $(target).attr('rel')), function(data) { var parent = $(target).parent(); parent.children().hide(); |