mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 03:42:52 +09:00
Bug #1195: Tentative fix.
Seems to fix some weirdness regarding language changes in Sunstone which might be related to session being rebuilt on page reload.
(cherry picked from commit e86a32ddc4)
This commit is contained in:
1 parent
a193b61127
commit
437346252a
2 files changed
+9
-2
No files matched your search
@@ -58,10 +58,14 @@ function setLang(lang_str){
|
||||
id: uid,
|
||||
extra_param: template_str
|
||||
},
|
||||
error: onError
|
||||
error: onError,
|
||||
success: function() {
|
||||
$.post('config',JSON.stringify({lang:lang_tmp}),function(){
|
||||
window.location.href = ".";
|
||||
});
|
||||
},
|
||||
};
|
||||
OpenNebula.User.update(obj);
|
||||
$.post('config',JSON.stringify({lang:lang_tmp}),function(){window.location.href = "."});
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -747,6 +747,9 @@ function setupTemplateUpdateDialog(){
|
||||
return false;
|
||||
};
|
||||
|
||||
//Workaround so deletion of templates is allowed.
|
||||
if (!new_template) new_template=" ";
|
||||
|
||||
var resource = $(this).val();
|
||||
Sunstone.runAction(resource+".update",id,new_template);
|
||||
dialog.dialog('close');
|
||||
|
||||
Reference in new issue
Block a user