add a knob to disable reload on js change

This commit is contained in:
Andrew Dolgov 2013-03-25 16:07:39 +04:00
parent 4401813325
commit 4cdb81737a
2 changed files with 2 additions and 1 deletions

View File

@ -2039,6 +2039,7 @@
$data['cdm_expanded'] = get_pref($link, 'CDM_EXPANDED');
$data['dep_ts'] = calculate_dep_timestamp();
$data['reload_on_ts_change'] = !defined('_NO_RELOAD_ON_TS_CHANGE');
if (file_exists(LOCK_DIRECTORY . "/update_daemon.lock")) {

View File

@ -447,7 +447,7 @@ function parse_runtime_info(data) {
}
if (k == "dep_ts" && parseInt(getInitParam("dep_ts")) > 0) {
if (parseInt(getInitParam("dep_ts")) < parseInt(v)) {
if (parseInt(getInitParam("dep_ts")) < parseInt(v) && getInitParam("reload_on_ts_change")) {
window.location.reload();
}
}