Fix form hiding on cancel button click

This commit is contained in:
ughblah
2012-03-08 00:54:36 -06:00
committed by Logan Hanks
parent 8d7e6a4a81
commit 2fa39c58dd

View File

@@ -929,9 +929,9 @@ function edit_usertext(elem) {
}
function cancel_usertext(elem) {
var t = $(elem).thing().debug();
t.find(".edit-usertext:first").parent("li").andSelf().show();
hide_edit_usertext(t.find(".usertext:first"));
var t = $(elem);
t.thing().find(".edit-usertext:first").parent("li").andSelf().show();
hide_edit_usertext(t.closest(".usertext"));
}
function save_usertext(elem) {