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); + } }); +