mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
Feature #2746: Fix template creation response message
This commit is contained in:
parent
b6542a628c
commit
02823770f6
@ -308,13 +308,13 @@ var service_template_actions = {
|
||||
"ServiceTemplate.create" : {
|
||||
type: "create",
|
||||
call: ServiceTemplate.create,
|
||||
callback: function(req, res){
|
||||
callback: function(request, response) {
|
||||
//empty creation dialog roles after successful creation
|
||||
var dialog = $create_service_template_dialog;
|
||||
$('table#current_roles tbody', dialog).empty();
|
||||
$('select[name="parents"]', dialog).empty();
|
||||
addServiceTemplateElement(req, res);
|
||||
notifyCustom(tr("Service Template created"), " ID: " + req.DOCUMENT.ID, false);
|
||||
addServiceTemplateElement(request, response);
|
||||
notifyCustom(tr("Service Template created"), " ID: " + response.DOCUMENT.ID, false);
|
||||
},
|
||||
error: onError
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user