]> git.wh0rd.org Git - tt-rss.git/commitdiff
@FIXED dijit modules aren't cached in perfs.php
authorgitawego <gitawego@gmail.com>
Tue, 14 May 2013 18:29:16 +0000 (20:29 +0200)
committergitawego <gitawego@gmail.com>
Tue, 14 May 2013 18:29:16 +0000 (20:29 +0200)
I don't know if it's the best practice of using Minifier.php like this

prefs.php

index b617d94bc917e754b771d7f374c012ed921a9fe0..93b7cbb7899ef22eb60c356bc971fc4b2cf5fa8a 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -53,8 +53,6 @@
        foreach (array("lib/prototype.js",
                                "lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls",
                                "lib/dojo/dojo.js",
-                               "lib/dijit/dijit.js",
-                               "lib/CheckBoxTree.js",
                                "lib/dojo/tt-rss-layer.js",
                                "errors.php?mode=js") as $jsfile) {
 
@@ -63,6 +61,7 @@
        } ?>
 
        <script type="text/javascript">
+               require({cache:{}});
        <?php
                require 'lib/jshrink/Minifier.php';
 
@@ -72,7 +71,7 @@
                        }
                }
 
-               print get_minified_js(array("functions", "deprecated", "prefs", "PrefFeedTree", "PrefFilterTree", "PrefLabelTree"));
+               print get_minified_js(array("../lib/CheckBoxTree","functions", "deprecated", "prefs", "PrefFeedTree", "PrefFilterTree", "PrefLabelTree"));
 
                init_js_translations();
        ?>