diff --git a/4chan_x.user.js b/4chan_x.user.js index 7c2703678..2a41e71b1 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1007,12 +1007,9 @@ $.append(overlay, dialog); $.append(d.body, overlay); options.cb.time.call($('input[name=time]', dialog)); - $.bind(overlay, 'click', function() { + return $.bind(overlay, 'click', function() { return $.rm(overlay); }); - return $.bind(dialog.firstElementChild, 'click', function(e) { - return e.stopPropagation(); - }); }, tab: function() { var content, div, _i, _len, _results; diff --git a/script.coffee b/script.coffee index bc4519372..08f32fe1a 100644 --- a/script.coffee +++ b/script.coffee @@ -790,7 +790,6 @@ options = options.cb.time.call $('input[name=time]', dialog) $.bind overlay, 'click', -> $.rm overlay - $.bind dialog.firstElementChild, 'click', (e) -> e.stopPropagation() tab: -> content = $$ '#main, #flavors, #time'