2012-03-15 18:14:54 +11:00
|
|
|
/*
|
|
|
|
* quick-posts-controls.js
|
2012-03-31 11:13:11 +11:00
|
|
|
* https://github.com/savetheinternet/Tinyboard/blob/master/js/quick-posts-controls.js
|
2012-03-15 18:14:54 +11: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 18:14:54 +11:00
|
|
|
*
|
|
|
|
* Usage:
|
|
|
|
* $config['additional_javascript'][] = 'js/jquery.min.js';
|
|
|
|
* $config['additional_javascript'][] = 'js/quick-post-controls.js';
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
2015-04-19 13:10:13 +10: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 04:20:32 -07:00
|
|
|
} );
|