mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 06:16:29 +00:00
[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);
|
deluge.moveStorage.show(ids);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
deluge.menus.torrent = new Ext.menu.Menu({
|
deluge.menus.torrent = new Ext.menu.Menu({
|
||||||
|
@ -35,7 +35,7 @@ Deluge.Sidebar = Ext.extend(Ext.Panel, {
|
|||||||
split: true,
|
split: true,
|
||||||
width: 200,
|
width: 200,
|
||||||
minSize: 100,
|
minSize: 100,
|
||||||
collapsible: true,
|
collapsible: true
|
||||||
}, config);
|
}, config);
|
||||||
Deluge.Sidebar.superclass.constructor.call(this, config);
|
Deluge.Sidebar.superclass.constructor.call(this, config);
|
||||||
},
|
},
|
||||||
|
@ -95,15 +95,15 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
|||||||
|
|
||||||
this.oldPassword = fieldset.add({
|
this.oldPassword = fieldset.add({
|
||||||
name: 'old_password',
|
name: 'old_password',
|
||||||
fieldLabel: _('Old:'),
|
fieldLabel: _('Old:')
|
||||||
});
|
});
|
||||||
this.newPassword = fieldset.add({
|
this.newPassword = fieldset.add({
|
||||||
name: 'new_password',
|
name: 'new_password',
|
||||||
fieldLabel: _('New:'),
|
fieldLabel: _('New:')
|
||||||
});
|
});
|
||||||
this.confirmPassword = fieldset.add({
|
this.confirmPassword = fieldset.add({
|
||||||
name: 'confirm_password',
|
name: 'confirm_password',
|
||||||
fieldLabel: _('Confirm:'),
|
fieldLabel: _('Confirm:')
|
||||||
});
|
});
|
||||||
|
|
||||||
fieldset = this.add({
|
fieldset = this.add({
|
||||||
@ -149,15 +149,14 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
|||||||
disabled: true,
|
disabled: true,
|
||||||
name: 'pkey',
|
name: 'pkey',
|
||||||
width: 180,
|
width: 180,
|
||||||
fieldLabel: _('Private Key:'),
|
fieldLabel: _('Private Key:')
|
||||||
|
|
||||||
}));
|
}));
|
||||||
this.certField = om.bind('cert', fieldset.add({
|
this.certField = om.bind('cert', fieldset.add({
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
name: 'cert',
|
name: 'cert',
|
||||||
width: 180,
|
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?'),
|
msg: _('Do you want to refresh the page now to use the new language?'),
|
||||||
buttons: {
|
buttons: {
|
||||||
yes: _('Refresh'),
|
yes: _('Refresh'),
|
||||||
no: _('Close'),
|
no: _('Close')
|
||||||
},
|
},
|
||||||
multiline : false,
|
multiline : false,
|
||||||
fn: function(btnText) {
|
fn: function(btnText) {
|
||||||
@ -263,7 +262,7 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
|||||||
});
|
});
|
||||||
deluge.client.webutils.get_languages({
|
deluge.client.webutils.get_languages({
|
||||||
success: this.onGotLanguages,
|
success: this.onGotLanguages,
|
||||||
scope: this,
|
scope: this
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, {
|
|||||||
store: new Ext.data.ArrayStore({
|
store: new Ext.data.ArrayStore({
|
||||||
fields: [
|
fields: [
|
||||||
{name: 'enabled', mapping: 0},
|
{name: 'enabled', mapping: 0},
|
||||||
{name: 'plugin', mapping: 1, sortType: 'asUCString'},
|
{name: 'plugin', mapping: 1, sortType: 'asUCString'}
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
columns: [{
|
columns: [{
|
||||||
|
@ -77,7 +77,7 @@ Deluge.preferences.PreferencesWindow = Ext.extend(Ext.Window, {
|
|||||||
deferredRender: true
|
deferredRender: true
|
||||||
},
|
},
|
||||||
autoScroll: true,
|
autoScroll: true,
|
||||||
width: 300,
|
width: 300
|
||||||
});
|
});
|
||||||
|
|
||||||
this.addButton(_('Close'), this.onClose, this);
|
this.addButton(_('Close'), this.onClose, this);
|
||||||
|
10
deluge/ui/web/js/extjs/ext-extensions-debug.js
vendored
10
deluge/ui/web/js/extjs/ext-extensions-debug.js
vendored
@ -358,7 +358,7 @@ Ext.ux.form.SpinnerGroup = Ext.extend(Ext.form.CheckboxGroup, {
|
|||||||
layoutConfig: {columns: this.items.length},
|
layoutConfig: {columns: this.items.length},
|
||||||
defaults: this.defaults,
|
defaults: this.defaults,
|
||||||
items: this.items
|
items: this.items
|
||||||
})
|
});
|
||||||
for(var i=0, len=this.items.length; i<len; i++){
|
for(var i=0, len=this.items.length; i<len; i++){
|
||||||
Ext.applyIf(this.items[i], colCfg);
|
Ext.applyIf(this.items[i], colCfg);
|
||||||
};
|
};
|
||||||
@ -924,7 +924,7 @@ Ext.override(Ext.tree.MultiSelectionModel, {
|
|||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
});
|
||||||
/*!
|
/*!
|
||||||
* Ext JS Library 3.4.0
|
* Ext JS Library 3.4.0
|
||||||
* Copyright(c) 2006-2011 Sencha Inc.
|
* Copyright(c) 2006-2011 Sencha Inc.
|
||||||
@ -1827,12 +1827,12 @@ Ext.ux.JSLoader = function(options) {
|
|||||||
script.onError(script.options, response.status);
|
script.onError(script.options, response.status);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
Ext.ux.JSLoader.index = 0;
|
Ext.ux.JSLoader.index = 0;
|
||||||
Ext.ux.JSLoader.scripts = [];
|
Ext.ux.JSLoader.scripts = [];
|
||||||
Ext.ux.JSLoader.stdError = function(options, e) {
|
Ext.ux.JSLoader.stdError = function(options, e) {
|
||||||
window.alert('Error loading script:\n\n' + options.url + '\n\nstatus: ' + e);
|
window.alert('Error loading script:\n\n' + options.url + '\n\nstatus: ' + e);
|
||||||
}
|
};
|
||||||
/*!
|
/*!
|
||||||
* Ext JS Library 3.4.0
|
* Ext JS Library 3.4.0
|
||||||
* Copyright(c) 2006-2011 Sencha Inc.
|
* 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.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.setYConstraint(1500, 1500, 10);
|
||||||
this.dd.endDrag = this.endDrag.createDelegate(this);
|
this.dd.endDrag = this.endDrag.createDelegate(this);
|
||||||
this.dd.startDrag = this.startDrag.createDelegate(this);
|
this.dd.startDrag = this.startDrag.createDelegate(this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user