[vhffs-dev] [2069] Put theme in a JS variable. |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 2069
Author: beuss
Date: 2012-02-26 17:34:48 +0100 (Sun, 26 Feb 2012)
Log Message:
-----------
Put theme in a JS variable.
Modified Paths:
--------------
trunk/vhffs-panel/js/vhffs/Common.js
Modified: trunk/vhffs-panel/js/vhffs/Common.js
===================================================================
--- trunk/vhffs-panel/js/vhffs/Common.js 2012-02-26 16:29:07 UTC (rev 2068)
+++ trunk/vhffs-panel/js/vhffs/Common.js 2012-02-26 16:34:48 UTC (rev 2069)
@@ -131,6 +131,12 @@
}
});
+try {
+ vhffs.Common.theme = dojo.query("meta[name=theme]")[0].content;
+} catch(e) {
+ vhffs.Common.theme = "light-grey";
+}
+
// Back and forward handling with Ajax
dojo.declare('vhffs.Common.pageState', null, {