2012-03-15 08:14:54 +01:00
|
|
|
/*
|
|
|
|
* quick-posts-controls.js
|
2012-03-31 02:13:11 +02:00
|
|
|
* https://github.com/savetheinternet/Tinyboard/blob/master/js/quick-posts-controls.js
|
2012-03-15 08:14:54 +01:00
|
|
|
*
|
|
|
|
* Released under the MIT license
|
|
|
|
* Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org>
|
2014-01-19 14:27:24 +01:00
|
|
|
* Copyright (c) 2013 undido <firekid109@hotmail.com>
|
|
|
|
* Copyright (c) 2013-2014 Marcin Łabanowski <marcin@6irc.net>
|
2012-03-15 08:14:54 +01:00
|
|
|
*
|
|
|
|
* Usage:
|
|
|
|
* $config['additional_javascript'][] = 'js/jquery.min.js';
|
|
|
|
* $config['additional_javascript'][] = 'js/quick-post-controls.js';
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
2015-04-19 05:10:13 +02:00
|
|
|
// Bottom of the page quick reply function
|
|
|
|
$("#thread-quick-reply").show();
|
|
|
|
$("#link-quick-reply").on( 'click', function(event) {
|
|
|
|
event.preventDefault();
|
|
|
|
$(window).trigger('cite', ['']);
|
|
|
|
return false;
|
|
|
|
} );
|
2015-04-20 13:20:32 +02:00
|
|
|
} );
|