1
0
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:
Daniel Molina 2016-01-20 18:26:57 +01:00
parent 5ac0cc16fd
commit b062783308
4 changed files with 24 additions and 34 deletions

View File

@ -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');

View File

@ -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();

View File

@ -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();

View File

@ -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();