summaryrefslogtreecommitdiff
path: root/js/quick-reply-old.js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-04-29 18:37:29 +0200
committerczaks <marcin@6irc.net>2014-04-29 18:37:29 +0200
commitb94e39148ba77bfecadee51b7dde99dbb9d555b2 (patch)
treebdd03de27cbbc3e09db6ba626bd3796621ac568f /js/quick-reply-old.js
parentd208789fa716b1955e70b9f771f0cc6d0f25eca3 (diff)
remove quick-reply-old. it probably doesn't work now, it certainly isn't
maintained. this is an old cruft and if needed, it needs rewriting.
Diffstat (limited to 'js/quick-reply-old.js')
-rw-r--r--js/quick-reply-old.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/js/quick-reply-old.js b/js/quick-reply-old.js
deleted file mode 100644
index 662ba62a..00000000
--- a/js/quick-reply-old.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * quick-reply.js
- * https://github.com/savetheinternet/Tinyboard/blob/master/js/quick-reply.js
- *
- * Released under the MIT license
- * Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org>
- * Copyright (c) 2013-2014 Marcin Ɓabanowski <marcin@6irc.net>
- * Copyright (c) 2013 lancee <lancee@55ch.org>
- *
- * Usage:
- * $config['quick_reply'] = true;
- * $config['additional_javascript'][] = 'js/jquery.min.js';
- * $config['additional_javascript'][] = 'js/quick-reply.js';
- *
- */
-
-if (active_page == 'index') {
-$(document).ready(function(){
- if($('div.banner').length != 0)
- return; // not index
-
- txt_new_topic = $('form[name=post] input[type=submit]').val();
- txt_new_reply = txt_new_topic == _('Submit') ? txt_new_topic : new_reply_string;
-
- undo_quick_reply = function() {
- $('div.banner').remove();
- $('form[name=post] input[type=submit]').val(txt_new_topic);
- $('form[name=post] input[name=quick-reply]').remove();
- }
-
- $('div.post.op').each(function() {
- var id = $(this).children('p.intro').children('a.post_no:eq(1)').text();
- $('<a href="#">['+_("Quick reply")+']</a>').insertAfter($(this).children('p.intro').children('a:last')).click(function() {
- $('div.banner').remove();
- $('<div class="banner">'+fmt(_("Posting mode: Replying to <small>&gt;&gt;{0}</small>"), [id])+' <a class="unimportant" onclick="undo_quick_reply()" href="javascript:void(0)">['+_("Return")+']</a></div>')
- .insertBefore('form[name=post]');
- $('form[name=post] input[type=submit]').val(txt_new_reply);
-
- $('<input type="hidden" name="quick-reply" value="' + id + '">').appendTo($('form[name=post]'));
-
- $('form[name=post] textarea').select();
-
- window.scrollTo(0, 0);
-
- return false;
- });
- });
-});
-}