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:
parent
eef9786e36
commit
e43ee373ae
@ -1118,6 +1118,7 @@ var SN = { // StatusNet
|
||||
wrapper = $('<div class="'+SN.C.S.Success+' geo_status_wrapper"><button class="close" style="float:right">×</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
2
js/util.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user