diff --git a/4chan_x.user.js b/4chan_x.user.js index 2a41e71b1..7c2703678 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1007,9 +1007,12 @@ $.append(overlay, dialog); $.append(d.body, overlay); options.cb.time.call($('input[name=time]', dialog)); - return $.bind(overlay, 'click', function() { + $.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 08f32fe1a..bc4519372 100644 --- a/script.coffee +++ b/script.coffee @@ -790,6 +790,7 @@ 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'