From c9542f1790b528087cfec736fa639f939b2c808b Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 15 Jun 2011 14:30:27 -0700 Subject: [PATCH] Revert "simplify" This reverts commit c6d9528c5c1b8c03ecc20fcf14c88393663cf451. --- 4chan_x.user.js | 5 ++++- script.coffee | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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'