2013-09-18 07:00:47 +02:00
|
|
|
/*
|
|
|
|
* settings.js
|
|
|
|
* https://github.com/savetheinternet/Tinyboard/blob/master/js/settings.js
|
|
|
|
*
|
|
|
|
* Optional settings. Used to customize some scripts without needing to tweak their code.
|
|
|
|
* Notes:
|
|
|
|
* - You must include this script first.
|
|
|
|
* - This file is just an example.
|
|
|
|
* - You should copy settings.js to something like instance.settings.js to prevent conflicts when upgrading.
|
|
|
|
* - This file should always be optional.
|
|
|
|
*
|
|
|
|
* Released under the MIT license
|
|
|
|
* Copyright (c) 2013 Michael Save <savetheinternet@tinyboard.org>
|
2014-01-19 14:27:24 +01:00
|
|
|
* Copyright (c) 2013-2014 Marcin Łabanowski <marcin@6irc.net>
|
2013-09-18 07:00:47 +02:00
|
|
|
*
|
|
|
|
* Usage:
|
|
|
|
* $config['additional_javascript'][] = 'js/jquery.min.js';
|
|
|
|
* $config['additional_javascript'][] = 'js/instance.settings.js';
|
|
|
|
* // $config['additional_javascript'][] = 'js/quick-reply.js';
|
|
|
|
*
|
|
|
|
* Usage in scripts:
|
|
|
|
* var settings = new script_settings('my-script');
|
|
|
|
* var some_value = settings.get('option', 'default value');
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
var tb_settings = {};
|
|
|
|
|
|
|
|
// quick-reply.js
|
|
|
|
tb_settings['quick-reply'] = {
|
|
|
|
// Hide form when scrolled to top of page (where original form is visible)
|
|
|
|
hide_at_top: true,
|
|
|
|
// "Quick reply" button floating at the top right hand corner of the page at all times
|
2013-12-27 15:46:59 +01:00
|
|
|
floating_link: false,
|
2013-12-24 00:28:30 +01:00
|
|
|
// Show remote in quick reply
|
|
|
|
show_remote: false,
|
|
|
|
// Show embedding in quick reply
|
|
|
|
show_embed: false
|
2013-09-18 07:00:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
// ajax.js
|
|
|
|
tb_settings['ajax'] = {
|
|
|
|
// Always act as if "noko" was typed when posting replies with the ajax script
|
|
|
|
always_noko_replies: false
|
|
|
|
};
|