diff --git a/mindplot/src/main/javascript/DesignerModel.js b/mindplot/src/main/javascript/DesignerModel.js index e42b47ea..d204d8f8 100644 --- a/mindplot/src/main/javascript/DesignerModel.js +++ b/mindplot/src/main/javascript/DesignerModel.js @@ -83,6 +83,7 @@ mindplot.DesignerModel = new Class({ addTopic:function (topic) { $assert(topic, "topic can not be null"); + $assert(typeof topic.getId() == "number", "id is not a number:" + topic.getId()); this._topics.push(topic); }, diff --git a/mindplot/src/main/javascript/NodeGraph.js b/mindplot/src/main/javascript/NodeGraph.js index daf2997c..43f590fe 100644 --- a/mindplot/src/main/javascript/NodeGraph.js +++ b/mindplot/src/main/javascript/NodeGraph.js @@ -38,6 +38,7 @@ mindplot.NodeGraph = new Class({ }, setId : function(id) { + $assert(typeof topic.getId() == "number", "id is not a number:" + id); this.getModel().setId(id); }, diff --git a/mindplot/src/main/javascript/StandaloneActionDispatcher.js b/mindplot/src/main/javascript/StandaloneActionDispatcher.js index 4d628d2d..8cc62279 100644 --- a/mindplot/src/main/javascript/StandaloneActionDispatcher.js +++ b/mindplot/src/main/javascript/StandaloneActionDispatcher.js @@ -268,7 +268,7 @@ mindplot.CommandContext = new Class({ var ids = designerTopics.map(function (topic) { return topic.getId(); }); - $assert(result.length == topicsIds.length, "Could not find topic. Result:" + result + ", Filter Criteria:" + topicsIds + ", Current Topics: " + ids); + $assert(result.length == topicsIds.length, "Could not find topic. Result:" + result + ", Filter Criteria:" + topicsIds + ", Current Topics: [" + ids + "]"); } return result; }, diff --git a/wise-editor/src/main/webapp/js/editor.js b/wise-editor/src/main/webapp/js/editor.js index 0bc95301..1cbbcac1 100644 --- a/wise-editor/src/main/webapp/js/editor.js +++ b/wise-editor/src/main/webapp/js/editor.js @@ -39,7 +39,7 @@ function buildDesigner(options) { return; } - // Trasform error ... + // Transform error ... var errorMsg = message; if (typeof(message) === 'object' && message.srcElement && message.target) { if (message.srcElement == '[object HTMLScriptElement]' && message.target == '[object HTMLScriptElement]') { @@ -57,7 +57,7 @@ function buildDesigner(options) { emulation:false, urlEncoded:false }).post(JSON.encode({ - jsErrorMsg:"Message: '" + errorMsg + "', line:'" + lineNo + "', :" + url, + jsErrorMsg:"Message: '" + errorMsg + "', line:'" + lineNo + "', url: :" + url, jsStack:window.errorStack, userAgent:navigator.userAgent, mapId:options.mapId})); diff --git a/wise-editor/src/main/webapp/samples/welcome.xml b/wise-editor/src/main/webapp/samples/welcome.xml index 69cdd8f8..cac5906b 100644 --- a/wise-editor/src/main/webapp/samples/welcome.xml +++ b/wise-editor/src/main/webapp/samples/welcome.xml @@ -1,197 +1,48 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - + \ No newline at end of file