1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5016 fix schedule action instantiate (#167)

Signed-off-by: Jorge Lobo <jlobo@opennebula.io>

Co-authored-by: Jorge Lobo <jlobo@opennebula.systems>
(cherry picked from commit 3c3b237fd47ae7626c01316ae57734733b890920)
This commit is contained in:
Jorge Miguel Lobo Escalona 2020-08-26 18:24:20 +02:00 committed by Tino Vazquez
parent 08bfe6f003
commit d2baba6ff7
2 changed files with 9 additions and 2 deletions

View File

@ -483,7 +483,14 @@ define(function(require) {
usersDatatable: that.usersTable.dataTableHTML,
groupDatatable: that.groupTable.dataTableHTML,
table_sched_actions: ScheduleActions.htmlTable(RESOURCE, Leases.html())
}) );
}
)
);
var objLeases = $.extend(true, {}, that);
objLeases.formContext = templatesContext;
objLeases.resource = "template";
objLeases.__proto__ = FormPanel.prototype;
Leases.actions(objLeases);
$(".provision_host_selector" + template_json.VMTEMPLATE.ID, context).data("hostsTable", that.hostsTable);
$(".provision_ds_selector" + template_json.VMTEMPLATE.ID, context).data("dsTable", that.datastoresTable);

View File

@ -52,7 +52,7 @@ define(function(require) {
config.system_config.leases &&
(config.system_config.leases.suspense || config.system_config.leases.terminate)
){
return $("<button />", {class: classButton}).append(
return $("<button />", {class: classButton, type:"button"}).append(
$("<i/>", {class: 'fa fa-clock'})
).prop('outerHTML');
}