From 4bd116d2b30a17bb868bb5f91fc67f4184664e05 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sun, 31 Jul 2011 17:09:17 -0700 Subject: [PATCH] copy old textarea value --- 4chan_x.user.js | 1 + script.coffee | 1 + 2 files changed, 2 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index c44ba4257..527c68c6f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1358,6 +1358,7 @@ left: '0px' }, html); qr.refresh(); + $('textarea', qr.el).value = $('textarea').value; $.bind($('input[name=name]', qr.el), 'mousedown', function(e) { return e.stopPropagation(); }); diff --git a/script.coffee b/script.coffee index dd075a9bc..97e68700d 100644 --- a/script.coffee +++ b/script.coffee @@ -1087,6 +1087,7 @@ qr = qr.el = ui.dialog 'qr', top: '0px', left: '0px', html qr.refresh() + $('textarea', qr.el).value = $('textarea').value $.bind $('input[name=name]', qr.el), 'mousedown', (e) -> e.stopPropagation() $.bind $('#autohide', qr.el), 'click', qr.cb.autohide