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;