forked from GNUsocial/gnu-social
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user