mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
new UI - after API refactor, boolean parameter is returned as boolean (i.e. true/false) instead of a string (i.e. "true"/"false"). This is corresponding UI change.
This commit is contained in:
parent
2da75a93bf
commit
624940dd94
@ -444,7 +444,7 @@ function doEditTemplate2($actionLink, $detailsTab, $midmenuItem1) {
|
||||
if(newDesc != oldDesc)
|
||||
array1.push("&displaytext="+todb(newDesc));
|
||||
|
||||
var oldPasswordEnabled = jsonObj.passwordenabled;
|
||||
var oldPasswordEnabled = jsonObj.passwordenabled.toString();
|
||||
var newPasswordEnabled = $detailsTab.find("#passwordenabled_edit").val();
|
||||
if(newPasswordEnabled != oldPasswordEnabled)
|
||||
array1.push("&passwordenabled="+newPasswordEnabled);
|
||||
@ -467,12 +467,12 @@ function doEditTemplate2($actionLink, $detailsTab, $midmenuItem1) {
|
||||
|
||||
//updateTemplatePermissions
|
||||
var array2 = [];
|
||||
var oldIsPublic = jsonObj.ispublic;
|
||||
var oldIsPublic = jsonObj.ispublic.toString();
|
||||
var newIsPublic = $detailsTab.find("#ispublic_edit").val();
|
||||
if(newIsPublic != oldIsPublic)
|
||||
array2.push("&ispublic="+newIsPublic);
|
||||
|
||||
var oldIsFeatured = jsonObj.isfeatured;
|
||||
var oldIsFeatured = jsonObj.isfeatured.toString();
|
||||
var newIsFeatured = $detailsTab.find("#isfeatured_edit").val();
|
||||
if(newIsFeatured != oldIsFeatured)
|
||||
array2.push("&isfeatured="+newIsFeatured);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user