mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-05 16:13:41 +00:00
[WebUI] Lint and minify
This commit is contained in:
parent
8ac65d77e0
commit
7223a51ba5
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* Deluge.Toolbar.js
|
||||
*
|
||||
*
|
||||
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -43,7 +43,7 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, {
|
||||
id: 'tbar-deluge-text',
|
||||
disabled: true,
|
||||
text: _('Deluge'),
|
||||
iconCls: 'x-deluge-main-panel',
|
||||
iconCls: 'x-deluge-main-panel'
|
||||
}, new Ext.Toolbar.Separator(),
|
||||
{
|
||||
id: 'create',
|
||||
@ -123,53 +123,53 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, {
|
||||
connectedButtons: [
|
||||
'add', 'remove', 'pause', 'resume', 'up', 'down'
|
||||
],
|
||||
|
||||
|
||||
initComponent: function() {
|
||||
Deluge.Toolbar.superclass.initComponent.call(this);
|
||||
deluge.events.on('connect', this.onConnect, this);
|
||||
deluge.events.on('login', this.onLogin, this);
|
||||
},
|
||||
|
||||
|
||||
onConnect: function() {
|
||||
Ext.each(this.connectedButtons, function(buttonId) {
|
||||
this.items.get(buttonId).enable();
|
||||
}, this);
|
||||
},
|
||||
|
||||
|
||||
onDisconnect: function() {
|
||||
Ext.each(this.connectedButtons, function(buttonId) {
|
||||
this.items.get(buttonId).disable();
|
||||
}, this);
|
||||
},
|
||||
|
||||
|
||||
onLogin: function() {
|
||||
this.items.get('logout').enable();
|
||||
},
|
||||
|
||||
|
||||
onLogout: function() {
|
||||
this.items.get('logout').disable();
|
||||
deluge.login.logout();
|
||||
},
|
||||
|
||||
|
||||
onConnectionManagerClick: function() {
|
||||
deluge.connectionManager.show();
|
||||
},
|
||||
|
||||
|
||||
onHelpClick: function() {
|
||||
window.open('http://dev.deluge-torrent.org/wiki/UserGuide');
|
||||
},
|
||||
|
||||
|
||||
onPreferencesClick: function() {
|
||||
deluge.preferences.show();
|
||||
},
|
||||
|
||||
|
||||
onTorrentAction: function(item) {
|
||||
var selection = deluge.torrents.getSelections();
|
||||
var ids = [];
|
||||
Ext.each(selection, function(record) {
|
||||
ids.push(record.id);
|
||||
});
|
||||
|
||||
|
||||
switch (item.id) {
|
||||
case 'remove':
|
||||
deluge.removeWindow.show(ids);
|
||||
@ -192,7 +192,7 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, {
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
onTorrentAdd: function() {
|
||||
deluge.add.show();
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ deluge.ui = {
|
||||
layout: 'fit',
|
||||
items: [
|
||||
deluge.details
|
||||
],
|
||||
]
|
||||
});
|
||||
|
||||
this.MainPanel = new Ext.Panel({
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user