]> git.wh0rd.org Git - tt-rss.git/commitdiff
digest: remove unused dependencies; optimize load a bit
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Mar 2013 16:45:57 +0000 (20:45 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Mar 2013 16:45:57 +0000 (20:45 +0400)
plugins/digest/digest.js
plugins/digest/digest_body.php

index 88410d9ede6e9a41f1c0f14eaeab94fd5136d772..197847411a637b2af1f522c4e4da61b6523a2ce6 100644 (file)
@@ -670,8 +670,6 @@ function init_second_stage() {
 
 function init() {
        try {
-               dojo.require("dijit.Dialog");
-
                new Ajax.Request("backend.php", {
                        parameters: {op: "rpc", method: "sanityCheck"},
                        onComplete: function(transport) {
index c4f51d3768016f1c298b70b216275cc795ade0d9..5ffcfd812adbbef496914d5dc8f6550d59399fa4 100644 (file)
@@ -7,8 +7,7 @@
 <head>
        <title>Tiny Tiny RSS</title>
 
-       <link rel="stylesheet" type="text/css" href="lib/dijit/themes/claro/claro.css"/>
-       <link rel="stylesheet" type="text/css" href="plugins/digest/digest.css?<?php echo $dt_add ?>"/>
+       <?php echo stylesheet_tag("plugins/digest/digest.css") ?>
 
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 
 
        <link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
 
-       <script type="text/javascript" src="lib/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
-       <script type="text/javascript" src="lib/prototype.js"></script>
-       <script type="text/javascript" src="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script>
+       <?php
+       foreach (array("lib/prototype.js",
+                               "lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls",
+                               "localized_js.php",
+                               "js/functions.js",
+                               "plugins/digest/digest.js",
+                               "errors.php?mode=js") as $jsfile) {
+
+               echo javascript_tag($jsfile);
+
+       } ?>
 
-       <script type="text/javascript" charset="utf-8" src="localized_js.php?<?php echo $dt_add ?>"></script>
-       <script type="text/javascript" charset="utf-8" src="errors.php?mode=js"></script>
-       <script type="text/javascript" charset="utf-8" src="js/functions.js?<?php echo $dt_add ?>"></script>
        <script type="text/javascript" src="plugins/digest/digest.js"></script>
 
        <script type="text/javascript">
@@ -31,7 +35,7 @@
                });
        </script>
 </head>
-<body id="ttrssDigest" class="claro">
+<body id="ttrssDigest">
        <div id="overlay" style="display : block">
                <div id="overlay_inner">
                <noscript>