[WebUI] Lint js files

This commit is contained in:
Calum Lind 2015-08-25 14:48:21 +01:00
parent 7d679eb480
commit 489550fd7a
10 changed files with 19 additions and 21 deletions

View File

@ -49,20 +49,20 @@ Ext.ux.util.RpcClient = Ext.extend(Ext.util.Observable, {
_optionKeys: ['scope', 'success', 'failure'],
/**
* @event connected
* Fires when the client has retrieved the list of methods from the server.
* @param {Ext.ux.util.RpcClient} this
*/
constructor: function(config) {
Ext.ux.util.RpcClient.superclass.constructor.call(this, config);
this._url = config.url || null;
this._id = 0;
this.addEvents(
// raw events
/**
* @event connected
* Fires when the client has retrieved the list of methods from the server.
* @param {Ext.ux.util.RpcClient} this
*/
// raw events
'connected',
'error'
);
this.reloadMethods();

View File

@ -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',

View File

@ -94,7 +94,7 @@ deluge.ui = {
layout: 'fit',
items: [
deluge.details
],
]
});
this.MainPanel = new Ext.Panel({

View File

@ -109,7 +109,7 @@ Deluge.preferences.Downloads = Ext.extend(Ext.FormPanel, {
name: 'sequential_download',
labelSeparator: '',
height: 22,
boxLabel: _('Sequential download'),
boxLabel: _('Sequential download')
}));
optMan.bind('add_paused', fieldset.add({
name: 'add_paused',

View File

@ -95,17 +95,17 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
this.oldPassword = fieldset.add({
name: 'old_password',
fieldLabel: _('Old Password:'),
labelSeparator: '',
labelSeparator: ''
});
this.newPassword = fieldset.add({
name: 'new_password',
fieldLabel: _('New Password:'),
labelSeparator: '',
labelSeparator: ''
});
this.confirmPassword = fieldset.add({
name: 'confirm_password',
fieldLabel: _('Confirm Password:'),
labelSeparator: '',
labelSeparator: ''
});
var panel = fieldset.add({

View File

@ -68,7 +68,7 @@ Deluge.preferences.Network = Ext.extend(Ext.form.FormPanel, {
fieldLabel: '',
labelSeparator: '',
width: 200,
vtype: 'IPAddress',
vtype: 'IPAddress'
}));
var fieldset = this.add({

View File

@ -78,9 +78,7 @@ Deluge.preferences.Other = Ext.extend(Ext.form.FormPanel, {
xtype: 'panel',
border: false,
bodyCfg: {
html: _('Help us improve Deluge by sending us your \
Python version, PyGTK version, OS and processor \
types. Absolutely no other information is sent.')
html: _('Help us improve Deluge by sending us your Python version, PyGTK version, OS and processor types. Absolutely no other information is sent.')
}
});
optMan.bind('send_info', fieldset.add({

View File

@ -142,7 +142,7 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
'username': this.username.getValue(),
'password': this.password.getValue(),
'proxy_hostnames': this.proxy_host_resolve.getValue(),
'proxy_peer_connections': this.proxy_peer_conn.getValue(),
'proxy_peer_connections': this.proxy_peer_conn.getValue()
}
},

View File

@ -74,7 +74,7 @@ Deluge.preferences.ProxyI2PField = Ext.extend(Ext.form.FieldSet, {
getValue: function() {
return {
'hostname': this.hostname.getValue(),
'port': Number(this.port.getValue()),
'port': Number(this.port.getValue())
}
},
@ -93,5 +93,5 @@ Deluge.preferences.ProxyI2PField = Ext.extend(Ext.form.FieldSet, {
oldValues[field.getName()] = oldValue;
this.fireEvent('change', this, newValues, oldValues);
},
}
});

View File

@ -81,7 +81,7 @@ Deluge.preferences.Proxy = Ext.extend(Ext.form.FormPanel, {
getValue: function() {
return {
'proxy': this.proxy.getValue(),
'proxy': this.proxy.getValue()
}
},