Also use global options. re #73
This commit is contained in:
parent
3144c528e5
commit
cdde134a65
5
util.js
5
util.js
|
@ -44,6 +44,11 @@ function isDefined(x) {
|
|||
}
|
||||
|
||||
function getCurrentOption (option) {
|
||||
if (!$.cookie (option)) {
|
||||
if (currentData && currentData.const && currentData.const.config && currentData.const.config [option]) {
|
||||
return currentData.const.config [option];
|
||||
}
|
||||
}
|
||||
return $.cookie (option);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue