From f071f5c5b3dd78da6ed6da39fc85fa11af34fe18 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 15 Nov 2010 14:13:17 -0800 Subject: [PATCH] new UI - apply noNull() or fromdb() to all fields that get value from API. --- ui/scripts/cloud.core.snapshot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/scripts/cloud.core.snapshot.js b/ui/scripts/cloud.core.snapshot.js index c3bd084abb1..a9485fbac0f 100644 --- a/ui/scripts/cloud.core.snapshot.js +++ b/ui/scripts/cloud.core.snapshot.js @@ -78,10 +78,10 @@ function snapshotJsonToDetailsTab() { $thisTab.data("jsonObj", jsonObj); $midmenuItem1.data("jsonObj", jsonObj); - $thisTab.find("#id").text(jsonObj.id); + $thisTab.find("#id").text(noNull(jsonObj.id)); $thisTab.find("#name").text(fromdb(jsonObj.name)); $thisTab.find("#volume_name").text(fromdb(jsonObj.volumename)); - $thisTab.find("#interval_type").text(jsonObj.intervaltype); + $thisTab.find("#interval_type").text(fromdb(jsonObj.intervaltype)); $thisTab.find("#account").text(fromdb(jsonObj.account)); $thisTab.find("#domain").text(fromdb(jsonObj.domain)); setDateField(jsonObj.created, $thisTab.find("#created"));