mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
Use new ResourceSelect in cloud view
This commit is contained in:
parent
5ac0cc16fd
commit
b062783308
@ -23,7 +23,6 @@ define(function(require) {
|
||||
var OpenNebula = require('opennebula');
|
||||
var Sunstone = require('sunstone');
|
||||
var Notifier = require('utils/notifier');
|
||||
var ResourceSelect = require('utils/resource-select');
|
||||
var QuotaWidgets = require('utils/quotas/quota-widgets');
|
||||
var QuotaDefaults = require('utils/quotas/quota-defaults');
|
||||
var Accounting = require('utils/accounting');
|
||||
|
@ -239,17 +239,14 @@ define(function(require) {
|
||||
}
|
||||
})
|
||||
|
||||
ResourceSelect.insert(
|
||||
".provision_list_flows_filter",
|
||||
context,
|
||||
"User",
|
||||
(opts.filter_expression ? opts.filter_expression : "-2"),
|
||||
false,
|
||||
'<option value="-2">'+Locale.tr("ALL")+'</option>',
|
||||
null,
|
||||
null,
|
||||
true,
|
||||
true);
|
||||
ResourceSelect.insert({
|
||||
context: $('.provision_list_flows_filter', context),
|
||||
resourceName: 'User',
|
||||
initValue: (opts.filter_expression ? opts.filter_expression : "-2"),
|
||||
extraOptions: '<option value="-2">' + Locale.tr("ALL") + '</option>',
|
||||
triggerChange: true,
|
||||
onlyName: true
|
||||
});
|
||||
|
||||
context.on("click", ".provision_flows_list_filter_button", function(){
|
||||
$(".provision_list_flows_filter", context).fadeIn();
|
||||
|
@ -218,17 +218,14 @@ define(function(require) {
|
||||
}
|
||||
})
|
||||
|
||||
ResourceSelect.insert(
|
||||
".provision_list_templates_filter",
|
||||
context,
|
||||
"User",
|
||||
(opts.filter_expression ? opts.filter_expression : "-2"),
|
||||
false,
|
||||
'<option value="-2">'+Locale.tr("ALL")+'</option>',
|
||||
null,
|
||||
null,
|
||||
true,
|
||||
true);
|
||||
ResourceSelect.insert({
|
||||
context: $('.provision_list_templates_filter', context),
|
||||
resourceName: 'User',
|
||||
initValue: (opts.filter_expression ? opts.filter_expression : "-2"),
|
||||
extraOptions: '<option value="-2">' + Locale.tr("ALL") + '</option>',
|
||||
triggerChange: true,
|
||||
onlyName: true
|
||||
});
|
||||
|
||||
context.on("click", ".provision_templates_list_filter_button", function(){
|
||||
$(".provision_list_templates_filter", context).fadeIn();
|
||||
|
@ -213,17 +213,14 @@ define(function(require) {
|
||||
}
|
||||
})
|
||||
|
||||
ResourceSelect.insert(
|
||||
".provision_list_vms_filter",
|
||||
context,
|
||||
"User",
|
||||
(opts.filter_expression ? opts.filter_expression : "-2"),
|
||||
false,
|
||||
'<option value="-2">'+Locale.tr("ALL")+'</option>',
|
||||
null,
|
||||
null,
|
||||
true,
|
||||
true);
|
||||
ResourceSelect.insert({
|
||||
context: $('.provision_list_vms_filter', context),
|
||||
resourceName: 'User',
|
||||
initValue: (opts.filter_expression ? opts.filter_expression : "-2"),
|
||||
extraOptions: '<option value="-2">' + Locale.tr("ALL") + '</option>',
|
||||
triggerChange: true,
|
||||
onlyName: true
|
||||
});
|
||||
|
||||
context.on("click", ".provision_vms_list_filter_button", function(){
|
||||
$(".provision_list_vms_filter", context).fadeIn();
|
||||
|
Loading…
Reference in New Issue
Block a user