[WebUI] Lint js files

This commit is contained in:
Calum Lind 2015-08-25 14:48:21 +01:00
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'], _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) { constructor: function(config) {
Ext.ux.util.RpcClient.superclass.constructor.call(this, config); Ext.ux.util.RpcClient.superclass.constructor.call(this, config);
this._url = config.url || null; this._url = config.url || null;
this._id = 0; this._id = 0;
this.addEvents( this.addEvents(
// raw events // raw events
/**
* @event connected
* Fires when the client has retrieved the list of methods from the server.
* @param {Ext.ux.util.RpcClient} this
*/
'connected', 'connected',
'error' 'error'
); );
this.reloadMethods(); this.reloadMethods();

View file

@ -43,7 +43,7 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, {
id: 'tbar-deluge-text', id: 'tbar-deluge-text',
disabled: true, disabled: true,
text: _('Deluge'), text: _('Deluge'),
iconCls: 'x-deluge-main-panel', iconCls: 'x-deluge-main-panel'
}, new Ext.Toolbar.Separator(), }, new Ext.Toolbar.Separator(),
{ {
id: 'create', id: 'create',

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -142,7 +142,7 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
'username': this.username.getValue(), 'username': this.username.getValue(),
'password': this.password.getValue(), 'password': this.password.getValue(),
'proxy_hostnames': this.proxy_host_resolve.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() { getValue: function() {
return { return {
'hostname': this.hostname.getValue(), '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; oldValues[field.getName()] = oldValue;
this.fireEvent('change', this, newValues, oldValues); this.fireEvent('change', this, newValues, oldValues);
}, }
}); });

View file

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