Permalink
Browse files

Updated the calltrace user preference.

  • Loading branch information...
1 parent 5133250 commit 5447e64685b15e0e666567c07bd8a2fae7f9bec2 @jeffyu jeffyu committed Mar 18, 2013
View
2 gadget-web/src/main/webapp/application.js
@@ -58,8 +58,6 @@ function addOverlay(jqElm) {
window.reloadGadget = function(iframeId, iframeUrl) {
var theIframe = document.getElementById(iframeId);
theIframe.src = iframeUrl;
- console.log("theIframe is: " + theIframe);
- console.log("reload Done");
}
View
4 gadgets/src/main/webapp/calltrace-gadget/gadget.xml
@@ -45,7 +45,7 @@
var host = parent.window.location.host;
var ident = getUserPreferenceValue("identifier");
- if (ident.value == "") {
+ if (ident == "" || ident == " ") {
$("#promptDiv").show();
return;
} else {
@@ -65,7 +65,7 @@
function updateResponse(response) {
var treeData;
var data = response.data;
- if (data == undefined) {
+ if (data == undefined || data == "undefined") {
treeData={};
} else {
treeData = new Array(data.tasks.length);

0 comments on commit 5447e64

Please sign in to comment.