From cdde134a650e65f3178f3e36f51f20c56d44e3a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Thu, 20 Jun 2013 20:31:57 +0200 Subject: [PATCH] Also use global options. re #73 --- util.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util.js b/util.js index 530e20e..1e07a47 100644 --- a/util.js +++ b/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); }