Changeset 8502 for trunk/web/javascript
- Timestamp:
- May 23, 2009, 9:39:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/javascript/transmission.js
r8500 r8502 79 79 this._inspector_file_list = $('#inspector_file_list')[0]; 80 80 this._inspector_tab_files = $('#inspector_tab_files')[0]; 81 this._toolbar_buttons = $('#torrent_global_menu ul li'); 81 82 82 83 // Setup the preference box … … 1444 1445 { 1445 1446 var showing_dialog = new RegExp("(prefs_showing|dialog_showing|open_showing)").test(document.body.className); 1446 if (showing_dialog) 1447 { 1448 $('.torrent_global_menu ul li').addClass('disabled'); 1449 } 1450 else 1447 this._toolbar_buttons.toggleClass( 'disabled', showing_dialog ); 1448 1449 if (!showing_dialog) 1451 1450 { 1452 1451 var torrents = this.getVisibleTorrents( ); … … 1467 1466 } 1468 1467 1469 $('.torrent_global_menu ul li.disabled').removeClass('disabled');1470 1471 1468 this.setEnabled( 'li#pause_selected', haveActiveSelection ); 1472 1469 this.setEnabled( 'li.context_pause_selected', haveActiveSelection );
Note: See TracChangeset
for help on using the changeset viewer.