Changeset a7a136


Ignore:
Timestamp:
04/27/2009 09:14:43 PM (16 years ago)
Author:
Damien Churchill <damoc@gmail.com>
Branches:
2.0.x, develop, extjs4-port, master
Children:
f811fc
Parents:
200e348
Message:

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

Location:
deluge/ui/web
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • deluge/ui/web/css/deluge.css

    r200e348 ra7a136  
    9898}
    9999
     100.x-deluge-add-torrent-name {
     101        line-height: 20px;
     102}
     103
     104.x-deluge-add-torrent-name-loading {
     105        padding-left: 20px;
     106        line-height: 20px;
     107        background: url('/themes/default/tree/loading.gif') no-repeat 2px;
     108}
     109
    100110/* Add Url Window */
    101111.x-deluge-add-file, .x-btn .x-deluge-add-file {
  • deluge/ui/web/index.html

    r200e348 ra7a136  
    1717        %endfor
    1818    </head>
    19     <body></body>
     19    <body>
     20        <div style="background-image: url('/themes/default/tree/loading.gif');"></div>
     21    </body>
    2022</html>
  • deluge/ui/web/js/Deluge.Add.js

    r200e348 ra7a136  
    176176               
    177177                function torrentRenderer(value, p, r) {
    178                         if (r.data['infohash']) {
    179                                 return String.format('<div class="x-add-torrent-name">{0}</div>', value);
     178                        if (r.data['info_hash']) {
     179                                return String.format('<div class="x-deluge-add-torrent-name">{0}</div>', value);
    180180                        } else {
    181                                 return String.format('<div class="x-add-torrent-name-loading">{0}</div>', value);
     181                                return String.format('<div class="x-deluge-add-torrent-name-loading">{0}</div>', value);
    182182                        }
    183183                }
Note: See TracChangeset for help on using the changeset viewer.