[Lint] [WebUI] Fix issues raised by closure
This commit is contained in:
parent
876e70d85f
commit
bd7d10b81e
|
@ -41,7 +41,7 @@ deluge.menus = {
|
|||
deluge.moveStorage.show(ids);
|
||||
break;
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
deluge.menus.torrent = new Ext.menu.Menu({
|
||||
|
|
|
@ -35,7 +35,7 @@ Deluge.Sidebar = Ext.extend(Ext.Panel, {
|
|||
split: true,
|
||||
width: 200,
|
||||
minSize: 100,
|
||||
collapsible: true,
|
||||
collapsible: true
|
||||
}, config);
|
||||
Deluge.Sidebar.superclass.constructor.call(this, config);
|
||||
},
|
||||
|
|
|
@ -95,15 +95,15 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
|||
|
||||
this.oldPassword = fieldset.add({
|
||||
name: 'old_password',
|
||||
fieldLabel: _('Old:'),
|
||||
fieldLabel: _('Old:')
|
||||
});
|
||||
this.newPassword = fieldset.add({
|
||||
name: 'new_password',
|
||||
fieldLabel: _('New:'),
|
||||
fieldLabel: _('New:')
|
||||
});
|
||||
this.confirmPassword = fieldset.add({
|
||||
name: 'confirm_password',
|
||||
fieldLabel: _('Confirm:'),
|
||||
fieldLabel: _('Confirm:')
|
||||
});
|
||||
|
||||
fieldset = this.add({
|
||||
|
@ -149,15 +149,14 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
|||
disabled: true,
|
||||
name: 'pkey',
|
||||
width: 180,
|
||||
fieldLabel: _('Private Key:'),
|
||||
|
||||
fieldLabel: _('Private Key:')
|
||||
}));
|
||||
this.certField = om.bind('cert', fieldset.add({
|
||||
xtype: 'textfield',
|
||||
disabled: true,
|
||||
name: 'cert',
|
||||
width: 180,
|
||||
fieldLabel: _('Certificate:'),
|
||||
fieldLabel: _('Certificate:')
|
||||
}));
|
||||
},
|
||||
|
||||
|
@ -178,7 +177,7 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
|||
msg: _('Do you want to refresh the page now to use the new language?'),
|
||||
buttons: {
|
||||
yes: _('Refresh'),
|
||||
no: _('Close'),
|
||||
no: _('Close')
|
||||
},
|
||||
multiline : false,
|
||||
fn: function(btnText) {
|
||||
|
@ -263,7 +262,7 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
|||
});
|
||||
deluge.client.webutils.get_languages({
|
||||
success: this.onGotLanguages,
|
||||
scope: this,
|
||||
scope: this
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, {
|
|||
store: new Ext.data.ArrayStore({
|
||||
fields: [
|
||||
{name: 'enabled', mapping: 0},
|
||||
{name: 'plugin', mapping: 1, sortType: 'asUCString'},
|
||||
{name: 'plugin', mapping: 1, sortType: 'asUCString'}
|
||||
]
|
||||
}),
|
||||
columns: [{
|
||||
|
|
|
@ -77,7 +77,7 @@ Deluge.preferences.PreferencesWindow = Ext.extend(Ext.Window, {
|
|||
deferredRender: true
|
||||
},
|
||||
autoScroll: true,
|
||||
width: 300,
|
||||
width: 300
|
||||
});
|
||||
|
||||
this.addButton(_('Close'), this.onClose, this);
|
||||
|
|
|
@ -358,7 +358,7 @@ Ext.ux.form.SpinnerGroup = Ext.extend(Ext.form.CheckboxGroup, {
|
|||
layoutConfig: {columns: this.items.length},
|
||||
defaults: this.defaults,
|
||||
items: this.items
|
||||
})
|
||||
});
|
||||
for(var i=0, len=this.items.length; i<len; i++){
|
||||
Ext.applyIf(this.items[i], colCfg);
|
||||
};
|
||||
|
@ -924,7 +924,7 @@ Ext.override(Ext.tree.MultiSelectionModel, {
|
|||
return node;
|
||||
}
|
||||
|
||||
})
|
||||
});
|
||||
/*!
|
||||
* Ext JS Library 3.4.0
|
||||
* Copyright(c) 2006-2011 Sencha Inc.
|
||||
|
@ -1827,12 +1827,12 @@ Ext.ux.JSLoader = function(options) {
|
|||
script.onError(script.options, response.status);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
Ext.ux.JSLoader.index = 0;
|
||||
Ext.ux.JSLoader.scripts = [];
|
||||
Ext.ux.JSLoader.stdError = function(options, e) {
|
||||
window.alert('Error loading script:\n\n' + options.url + '\n\nstatus: ' + e);
|
||||
}
|
||||
};
|
||||
/*!
|
||||
* Ext JS Library 3.4.0
|
||||
* Copyright(c) 2006-2011 Sencha Inc.
|
||||
|
@ -2034,7 +2034,7 @@ Ext.ux.Spinner = Ext.extend(Ext.util.Observable, {
|
|||
|
||||
this.field.mon(this.wrap, "mousewheel", this.handleMouseWheel, this);
|
||||
|
||||
this.dd.setXConstraint(0, 0, 10)
|
||||
this.dd.setXConstraint(0, 0, 10);
|
||||
this.dd.setYConstraint(1500, 1500, 10);
|
||||
this.dd.endDrag = this.endDrag.createDelegate(this);
|
||||
this.dd.startDrag = this.startDrag.createDelegate(this);
|
||||
|
|
Loading…
Reference in New Issue