Also use global options. re #73

This commit is contained in:
Sébastien Lucas 2013-06-20 20:31:57 +02:00
parent 3144c528e5
commit cdde134a65

View file

@ -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);
}