diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 07:31:05 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 07:31:05 +1000 |
| commit | c8f2f00320dd90ff51dec4de0286a9415aba4b0b (patch) | |
| tree | a8165f2f7a2e67525b234bd0a1c1d9841520adb9 /templates/main.js | |
| parent | 9a8cebe4a1c298b3d6ff13332a2daded90506d3c (diff) | |
fix bug with quick-reply and make it nicer
Diffstat (limited to 'templates/main.js')
| -rw-r--r-- | templates/main.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/main.js b/templates/main.js index c0961878..a395852a 100644 --- a/templates/main.js +++ b/templates/main.js @@ -181,7 +181,7 @@ function dopost(form) { return form.elements['body'].value != "" || form.elements['file'].value != "" || (form.elements.file_url && form.elements['file_url'].value != ""); } -function citeReply(id) { +function citeReply(id, with_link) { var body = document.getElementById('body'); if (document.selection) { @@ -199,7 +199,7 @@ function citeReply(id) { body.value += '>>' + id + '\n'; } if ($) { - $(window).trigger('cite', id); + $(window).trigger('cite', [id, with_link]); $(body).change(); } } @@ -218,7 +218,7 @@ function rememberStuff() { document.forms.post.elements['email'].value = localStorage.email; if (window.location.hash.indexOf('q') == 1) - citeReply(window.location.hash.substring(2)); + citeReply(window.location.hash.substring(2), true); if (sessionStorage.body) { var saved = JSON.parse(sessionStorage.body); |
