fixup: jslint errors
fix some small problems where jslint complains, introduced by commit: 9265782932cdbcf8e6c7781aec437d06a22048d4 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
0fcd787928
commit
5878b25d16
@ -51,7 +51,7 @@ Ext.define('PVE.dc.RoleView', {
|
||||
|
||||
var win = Ext.create('PVE.dc.RoleEdit',{
|
||||
roleid: rec.data.roleid,
|
||||
privs: rec.data.privs,
|
||||
privs: rec.data.privs
|
||||
});
|
||||
win.on('destroy', reload);
|
||||
win.show();
|
||||
@ -91,7 +91,7 @@ Ext.define('PVE.dc.RoleView', {
|
||||
activate: function() {
|
||||
store.load();
|
||||
},
|
||||
itemdblclick: run_editor,
|
||||
itemdblclick: run_editor
|
||||
},
|
||||
tbar: [
|
||||
{
|
||||
|
@ -14,10 +14,12 @@ Ext.define('PVE.form.PrivilegesSelector', {
|
||||
url: '/access/roles/Administrator',
|
||||
method: 'GET',
|
||||
success: function(response, options) {
|
||||
var data = [];
|
||||
for (var key in response.result.data) {
|
||||
var data = [], key;
|
||||
/*jslint forin: true */
|
||||
for (key in response.result.data) {
|
||||
data.push([key, key]);
|
||||
}
|
||||
/*jslint forin: false */
|
||||
|
||||
me.store.setData(data);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user