[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6529] trunk/UI/lib/setup.js



Revision: 6529
          http://sourceforge.net/p/ledger-smb/code/6529
Author:   ehuelsmann
Date:     2014-01-18 20:15:39 +0000 (Sat, 18 Jan 2014)
Log Message:
-----------
Based on a query parameter 'dojo=no', set purely client side cookie to disable dojo widgets.

Modified Paths:
--------------
    trunk/UI/lib/setup.js

Modified: trunk/UI/lib/setup.js
===================================================================
--- trunk/UI/lib/setup.js	2014-01-18 12:24:37 UTC (rev 6528)
+++ trunk/UI/lib/setup.js	2014-01-18 20:15:39 UTC (rev 6529)
@@ -139,8 +139,18 @@
       }
 );*/
 
-require(['lsmb/lib/Loader', 'dojo/domReady!'],
+require(['lsmb/lib/Loader', 'dojo/cookie', 'dojo/domReady!'],
 function(l){
-   loader = new l;
-   loader.setup();
+    if (location.search.indexOf('&dojo=no') != -1) {
+        dojo.cookie("lsmb-dojo-disable", "yes", {});
+    } else if (location.search.indexOf('&dojo') != -1) {
+        dojo.cookie("lsmb-dojo-disable", "no", {});
+    }
+
+    if (dojo.cookie("lsmb-dojo-disable") != 'yes') {
+        loader = new l;
+        loader.setup();
+    } else {
+        init();
+    }
 });

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits