Fix disappearing reply forms when closing geo section

Missing default-cancel in the click handler allowed the event to bubble up to the body handler, where we think the click is outside of the form because the target is no longer in the form by the time we check
Now the event no longer bubbles up, as we cancel it when we're done.
This commit is contained in:
Brion Vibber 2011-03-10 16:29:13 -08:00
parent eef9786e36
commit e43ee373ae
2 changed files with 2 additions and 1 deletions

View File

@ -1118,6 +1118,7 @@ var SN = { // StatusNet
wrapper = $('<div class="'+SN.C.S.Success+' geo_status_wrapper"><button class="close" style="float:right">&#215;</button><div class="geo_status"></div></div>');
wrapper.find('button.close').click(function() {
form.find('[name=notice_data-geo]').removeAttr('checked').change();
return false;
});
form.append(wrapper);
}

2
js/util.min.js vendored

File diff suppressed because one or more lines are too long