From a9d95bb3c1a37d252a5571aa957db62520544dd1 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 15 Jan 2011 15:18:12 -0800 Subject: [PATCH] dialog removal working --- 4chan_x.coffee | 2 +- 4chan_x.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index a00121a3d..9461980b0 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -99,7 +99,7 @@ AEOS = if top then dialog.style.top = top else dialog.style.bottom = '0px' $('div.move', dialog).addEventListener 'mousedown', AEOS.move, true - $('div.move a[name=close]', dialog)?.addEventListener 'click', (-> remove $ id), true + $('div.move a[name=close]', dialog)?.addEventListener 'click', (-> remove $ '#'+id), true dialog #movement move: (e) -> diff --git a/4chan_x.js b/4chan_x.js index 1690380fa..cc7d5317f 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -114,7 +114,7 @@ $('div.move', dialog).addEventListener('mousedown', AEOS.move, true); if ((_ref = $('div.move a[name=close]', dialog)) != null) { _ref.addEventListener('click', (function() { - return remove($(id)); + return remove($('#' + id)); }), true); } return dialog;