From 6d3ac4c5126e7f3aabd499bca2e6cdef7cd91a43 Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 17 Sep 2013 18:19:44 -0400 Subject: [PATCH] remove js/quick-reply-vd-old.js (didn't differ too much from the original -old) --- js/quick-reply-old.js | 3 ++- js/quick-reply-vd-old.js | 47 ----------------------------------------------- 2 files changed, 2 insertions(+), 48 deletions(-) delete mode 100644 js/quick-reply-vd-old.js diff --git a/js/quick-reply-old.js b/js/quick-reply-old.js index ea504b48..bee204b7 100644 --- a/js/quick-reply-old.js +++ b/js/quick-reply-old.js @@ -12,6 +12,7 @@ * */ +if (active_page == 'index') { $(document).ready(function(){ if($('div.banner').length != 0) return; // not index @@ -43,4 +44,4 @@ $(document).ready(function(){ }); }); }); - +} diff --git a/js/quick-reply-vd-old.js b/js/quick-reply-vd-old.js deleted file mode 100644 index bee204b7..00000000 --- a/js/quick-reply-vd-old.js +++ /dev/null @@ -1,47 +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 - * - * 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(); - $('['+_("Quick reply")+']').insertAfter($(this).children('p.intro').children('a:last')).click(function() { - $('div.banner').remove(); - $('') - .insertBefore('form[name=post]'); - $('form[name=post] input[type=submit]').val(txt_new_reply); - - $('').appendTo($('form[name=post]')); - - $('form[name=post] textarea').select(); - - window.scrollTo(0, 0); - - return false; - }); - }); -}); -}