forked from GithubBackups/vichan
Add update button to auto-reload.js
This commit is contained in:
parent
f0e58a02d2
commit
4eb31555fc
@ -15,15 +15,15 @@ require_once "8chan-functions.php";
|
||||
$config['db']['database'] = '8chan';
|
||||
$config['db']['prefix'] = '';
|
||||
$config['db']['user'] = 'root';
|
||||
$config['db']['password'] = 'C218Fu2Pg5zB6ol';
|
||||
$config['db']['password'] = '';
|
||||
$config['timezone'] = 'UTC';
|
||||
$config['cache']['enabled'] = 'apc';
|
||||
|
||||
|
||||
$config['cookies']['mod'] = 'mod';
|
||||
$config['cookies']['salt'] = 'YTBmNTUzZThkYWY5ZjYxNjIzOGQxYj';
|
||||
$config['cookies']['salt'] = '';
|
||||
|
||||
$config['flood_time'] = 2;
|
||||
$config['flood_time'] = 5;
|
||||
$config['flood_time_ip'] = 2;
|
||||
$config['flood_time_same'] = 2;
|
||||
$config['max_body'] = 5000;
|
||||
@ -37,7 +37,7 @@ require_once "8chan-functions.php";
|
||||
$config['max_pages'] = 10;
|
||||
$config['threads_preview'] = 5;
|
||||
$config['root'] = '/';
|
||||
$config['secure_trip_salt'] = 'OGNkMjQ4MGM5MDFkYmVhYWFhOGYwOG';
|
||||
$config['secure_trip_salt'] = '';
|
||||
$config['always_noko'] = true;
|
||||
$config['allow_no_country'] = true;
|
||||
$config['thread_subject_in_title'] = true;
|
||||
@ -107,6 +107,7 @@ require_once "8chan-functions.php";
|
||||
$config['additional_javascript'][] = 'js/local-time.js';
|
||||
$config['additional_javascript'][] = 'js/no-animated-gif.js';
|
||||
$config['additional_javascript'][] = 'js/expand.js';
|
||||
$config['additional_javascript'][] = 'js/titlebar-notifications.js';
|
||||
$config['additional_javascript'][] = 'js/auto-reload.js';
|
||||
$config['additional_javascript'][] = 'js/quick-reply.js';
|
||||
$config['additional_javascript'][] = 'js/options/user-css.js';
|
||||
@ -135,12 +136,6 @@ require_once "8chan-functions.php";
|
||||
//$config['debug'] = true;
|
||||
$config['syslog'] = true;
|
||||
|
||||
$config['flood_time'] = 0;
|
||||
// Minimum time between between each post with the exact same content AND same IP address.
|
||||
$config['flood_time_ip'] = 120;
|
||||
// Same as above but by a different IP address. (Same content, not necessarily same IP address.)
|
||||
$config['flood_time_same'] = 30;
|
||||
|
||||
$config['wordfilters'][] = array('\rule', ''); // 'true' means it's a regular expression
|
||||
|
||||
if (!function_exists('prettify_textarea')){
|
||||
|
@ -27,6 +27,8 @@ $(document).ready(function(){
|
||||
|
||||
var poll_interval;
|
||||
|
||||
// Add an update link
|
||||
$('.boardlist.bottom').prev().after("<a href='#' id='update_thread' style='padding-left:10px'>["+_("Update thread")+"]</a>");
|
||||
|
||||
// Grab the settings
|
||||
var settings = new script_settings('auto-reload');
|
||||
@ -131,6 +133,8 @@ $(document).ready(function(){
|
||||
end_of_page = true;
|
||||
}).trigger('scroll');
|
||||
|
||||
$('#update_thread').on('click', poll);
|
||||
|
||||
poll_interval = setTimeout(poll, poll_interval_delay);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user