1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

Use new ResourceSelect in accounting

This commit is contained in:
Daniel Molina 2016-01-20 18:37:28 +01:00
parent 1c0ee159c9
commit f8c1da1604

View File

@ -111,13 +111,20 @@ define(function(require) {
case "acct_owner_group":
$("#acct_owner_select", context).show();
ResourceSelect.insert("#acct_owner_select", context, "Group");
ResourceSelect.insert({
context: $('#acct_owner_select', context),
resourceName: 'Group'
});
break;
case "acct_owner_user":
$("#acct_owner_select", context).show();
ResourceSelect.insert("#acct_owner_select", context, "User", -1, false,
'<option value="-1">'+Locale.tr("<< me >>")+'</option>');
ResourceSelect.insert({
context: $('#acct_owner_select', context),
resourceName: 'User',
initValue: -1,
extraOptions: '<option value="-1">' + Locale.tr("<< me >>") + '</option>'
});
break;
}
});