1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-05 04:18:03 +01:00
vichan/js/quick-post-controls.js

25 lines
744 B
JavaScript
Raw Normal View History

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>
* 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(){
// 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;
} );
} );