Changeset 8069


Ignore:
Timestamp:
Mar 16, 2009, 3:04:25 AM (13 years ago)
Author:
livings124
Message:

web ui - file priority buttons that aren't clickable on a completed file

Location:
trunk/web
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/torrent.js

    r8066 r8069  
    673673       
    674674        setPriority: function(priority) {
     675                if(this.element().hasClass('complete'))
     676                  return;
    675677                var priority_level = { high: 1, normal: 0, low: -1 }[priority];
    676678                if (this._prio == priority_level) { return; }
     
    748750                }
    749751                var file = event.data.file;
    750                 if (x < 8) { file.setPriority('low'); }
    751                 else if (x < 16) { file.setPriority('normal'); }
     752                if (x < 12) { file.setPriority('low'); }
     753                else if (x < 23) { file.setPriority('normal'); }
    752754                else { file.setPriority('high'); }
    753755        }
  • trunk/web/stylesheets/common.css

    r8066 r8069  
    653653div.file_priority_control {
    654654        float: right;
    655         margin: 0 0 0 0;
    656         width: 24px;
    657         height: 12px;
     655        margin: 4px 0 0 0;
     656        width: 35px;
     657        height: 19px;
    658658        background-image: url('../images/buttons/file_priority_buttons.png');
    659659        background-repeat: no-repeat;
     
    661661        cursor: pointer;
    662662}
     663div.file_priority_control.normal {
     664        background-position: left top;
     665}
     666div.file_priority_control.normal:hover {
     667        background-position: right top;
     668}
    663669div.file_priority_control.high {
    664         background-position: left -12px;
     670        background-position: left -19px;
    665671}
    666672div.file_priority_control.high:hover {
    667         background-position: right -12px;
    668 }
    669 div.file_priority_control.normal {
    670         background-position: left -24px;
    671 }
    672 div.file_priority_control.normal:hover {
    673         background-position: right -24px;
     673        background-position: right -19px;
    674674}
    675675div.file_priority_control.low {
    676         background-position: left 0px;
     676        background-position: left -38px;
    677677}
    678678div.file_priority_control.low:hover {
    679         background-position: right 0px;
    680 }
    681 
     679        background-position: right -38px;
     680}
     681li.inspector_torrent_file_list_entry.complete div.file_priority_control,
     682li.inspector_torrent_file_list_entry.complete div.file_priority_control:hover {
     683  background-position: left -57px;
     684  cursor: default;
     685}
    682686
    683687/*--------------------------------------
Note: See TracChangeset for help on using the changeset viewer.