From f40aaab2eae4bed4dc0d88cbd64b16bd43786bdd Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Sun, 27 Jul 2014 18:25:52 -0300 Subject: [PATCH] trying to load pom.xml --- .../main/javascript/RestPersistenceManager.js | 1 + wise-editor/src/main/webapp/js/mindplot-min.js | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/mindplot/src/main/javascript/RestPersistenceManager.js b/mindplot/src/main/javascript/RestPersistenceManager.js index 4eda6de5..adb24a55 100644 --- a/mindplot/src/main/javascript/RestPersistenceManager.js +++ b/mindplot/src/main/javascript/RestPersistenceManager.js @@ -16,6 +16,7 @@ * limitations under the License. */ +//FIXME: remove Request class mindplot.RESTPersistenceManager = new Class({ Extends:mindplot.PersistenceManager, initialize:function (options) { diff --git a/wise-editor/src/main/webapp/js/mindplot-min.js b/wise-editor/src/main/webapp/js/mindplot-min.js index a53055ff..304a2501 100644 --- a/wise-editor/src/main/webapp/js/mindplot-min.js +++ b/wise-editor/src/main/webapp/js/mindplot-min.js @@ -56,11 +56,20 @@ function JSPomLoader(pomUrl, callback) { } - -jQuery.getScript("../../../../../web2d/target/classes/web2d.svg-min.js", function () { - JSPomLoader('../../../../../mindplot/pom.xml', function () { - }); +$.ajax({ + url: "../../../../../web2d/target/classes/web2d.svg-min.js", + crossDomain: true, + dataType: "script", + success: function () { + JSPomLoader('../../../../../mindplot/pom.xml', function () { + }); + }, + error: function(){ + console.error("Unexpected error loading:"+url); + console.error(arguments); + } }); +