From 624940dd94cf19453475d743d4206ac1c7e4481b Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 1 Nov 2010 20:16:46 -0700 Subject: [PATCH] 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. --- ui/new/scripts/cloud.core2.template.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/new/scripts/cloud.core2.template.js b/ui/new/scripts/cloud.core2.template.js index 06082727804..3f7af69daf5 100644 --- a/ui/new/scripts/cloud.core2.template.js +++ b/ui/new/scripts/cloud.core2.template.js @@ -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);