mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Feature #3748: Fix settings changes for other users
This commit is contained in:
parent
6d7251ae31
commit
f3634dd0a2
@ -152,22 +152,23 @@ define(function(require) {
|
||||
type: "single",
|
||||
call: OpenNebulaResource.update,
|
||||
callback: function(request) {
|
||||
$.ajax({
|
||||
url: 'config',
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
success: function() {
|
||||
return false;
|
||||
},
|
||||
error: function(response) {
|
||||
}
|
||||
});
|
||||
|
||||
Sunstone.runAction(RESOURCE+'.show',request.request.data[0][0]);
|
||||
|
||||
var reqId = request.request.data[0][0];
|
||||
|
||||
Sunstone.runAction(RESOURCE+'.show',reqId);
|
||||
|
||||
if (reqId == config['user_id'] || reqId == "-1") {
|
||||
Sunstone.runAction('Settings.refresh');
|
||||
|
||||
$.ajax({
|
||||
url: 'config',
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
success: function() {
|
||||
return false;
|
||||
},
|
||||
error: function(response) {
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
error: Notifier.onError
|
||||
@ -177,22 +178,23 @@ define(function(require) {
|
||||
type: "single",
|
||||
call: OpenNebulaResource.append,
|
||||
callback: function(request) {
|
||||
$.ajax({
|
||||
url: 'config',
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
success: function() {
|
||||
return false;
|
||||
},
|
||||
error: function(response) {
|
||||
}
|
||||
});
|
||||
|
||||
Sunstone.runAction(RESOURCE+'.show',request.request.data[0][0]);
|
||||
|
||||
var reqId = request.request.data[0][0];
|
||||
|
||||
Sunstone.runAction(RESOURCE+'.show',reqId);
|
||||
|
||||
if (reqId == config['user_id'] || reqId == "-1") {
|
||||
Sunstone.runAction('Settings.refresh');
|
||||
|
||||
$.ajax({
|
||||
url: 'config',
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
success: function() {
|
||||
return false;
|
||||
},
|
||||
error: function(response) {
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
error: Notifier.onError
|
||||
@ -202,16 +204,22 @@ define(function(require) {
|
||||
type: "single",
|
||||
call: OpenNebulaResource.append,
|
||||
callback: function(request) {
|
||||
$.ajax({
|
||||
url: 'config',
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
success: function() {
|
||||
window.location.href = ".";
|
||||
},
|
||||
error: function(response) {
|
||||
}
|
||||
});
|
||||
var reqId = request.request.data[0][0];
|
||||
|
||||
if (reqId == config['user_id'] || reqId == "-1") {
|
||||
$.ajax({
|
||||
url: 'config',
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
success: function() {
|
||||
window.location.href = ".";
|
||||
},
|
||||
error: function(response) {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
Sunstone.runAction(RESOURCE+'.show',reqId);
|
||||
}
|
||||
},
|
||||
error: Notifier.onError
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user