mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-16 01:33:10 +09:00
Fix error when creating a new template as a regular user
This commit is contained in:
1 parent
080a8031e0
commit
4eb339d5d7
1 file changed
+6
-2
@@ -265,7 +265,7 @@ function updateView(item_list,dataTable){
|
||||
{
|
||||
current_id = $($('td',this)[0]).html();
|
||||
}
|
||||
|
||||
|
||||
if (current_id)
|
||||
{
|
||||
if(jQuery.inArray(current_id, checked_row_ids)!=-1)
|
||||
@@ -736,7 +736,11 @@ function makeSelectOptions(dataTable,
|
||||
|
||||
//Escape doublequote in a string and return it
|
||||
function escapeDoubleQuotes(string){
|
||||
return string.replace(/\\/g,'\\').replace(/"/g,'\\"');
|
||||
if (string != undefined) {
|
||||
return string.replace(/\\/g,'\\').replace(/"/g,'\\"');
|
||||
} else {
|
||||
return string;
|
||||
}
|
||||
}
|
||||
|
||||
function derivative(data) {
|
||||
|
||||
Reference in new issue
Block a user