Author: damoxc

Revision: 5196

Log:
        add a loading css style for when the torrent doesn't have its info yet

Diff:
Modified: trunk/deluge/ui/web/css/deluge.css
===================================================================
--- trunk/deluge/ui/web/css/deluge.css  2009-04-27 20:50:54 UTC (rev 5195)
+++ trunk/deluge/ui/web/css/deluge.css  2009-04-27 21:14:43 UTC (rev 5196)
@@ -97,6 +97,16 @@
        background: url('/icons/add.png') no-repeat 2px;
 }
 
+.x-deluge-add-torrent-name {
+       line-height: 20px;
+}
+
+.x-deluge-add-torrent-name-loading {
+       padding-left: 20px;
+       line-height: 20px;
+       background: url('/themes/default/tree/loading.gif') no-repeat 2px;
+}
+
 /* Add Url Window */
 .x-deluge-add-file, .x-btn .x-deluge-add-file {
        background: url('/icons/add_file.png') no-repeat 2px;

Modified: trunk/deluge/ui/web/index.html
===================================================================
--- trunk/deluge/ui/web/index.html      2009-04-27 20:50:54 UTC (rev 5195)
+++ trunk/deluge/ui/web/index.html      2009-04-27 21:14:43 UTC (rev 5196)
@@ -16,5 +16,7 @@
         <script type="text/javascript" src="${script}"></script>
         %endfor
     </head>
-    <body></body>
+    <body>
+        <div style="background-image: 
url('/themes/default/tree/loading.gif');"></div>
+    </body>
 </html>

Modified: trunk/deluge/ui/web/js/Deluge.Add.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.Add.js        2009-04-27 20:50:54 UTC (rev 
5195)
+++ trunk/deluge/ui/web/js/Deluge.Add.js        2009-04-27 21:14:43 UTC (rev 
5196)
@@ -175,10 +175,10 @@
                this.addButton(_('Add'), this.onAdd, this);
                
                function torrentRenderer(value, p, r) {
-                       if (r.data['infohash']) {
-                               return String.format('<div 
class="x-add-torrent-name">{0}</div>', value);
+                       if (r.data['info_hash']) {
+                               return String.format('<div 
class="x-deluge-add-torrent-name">{0}</div>', value);
                        } else {
-                               return String.format('<div 
class="x-add-torrent-name-loading">{0}</div>', value);
+                               return String.format('<div 
class="x-deluge-add-torrent-name-loading">{0}</div>', value);
                        }
                }
                



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to