diff --git a/xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/js/xwiki/panelwizard/panelWizard.js b/xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/js/xwiki/panelwizard/panelWizard.js index 8bec872..7a5383e 100644 --- a/xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/js/xwiki/panelwizard/panelWizard.js +++ b/xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/js/xwiki/panelwizard/panelWizard.js @@ -221,10 +221,11 @@ function executeCommand(url, callback) { if (ajaxCallback) { ajaxCallback(ajaxRequest.responseText); } else { - alert('no callback defined'); + new XWiki.widgets.Notification('no callback defined', 'error'); } } else { - alert("There was a problem retrieving the xml data:\n" + ajaxRequest.status + ":\t" + ajaxRequest.statusText + "\n" + ajaxRequest.responseText); + new XWiki.widgets.Notification("There was a problem retrieving the xml data:\n" + ajaxRequest.status + ":\t" + + ajaxRequest.statusText + "\n" + ajaxRequest.responseText, 'error'); } } } @@ -247,10 +248,10 @@ function executeCommand(url, callback) { ajaxRequest.open("GET", url, true); ajaxRequest.send(); } else{ - alert("your browser does not support xmlhttprequest" ) + new XWiki.widgets.Notification('your browser does not support xmlhttprequest', 'error'); } } else{ - alert("your browser does not support xmlhttprequest" ) + new XWiki.widgets.Notification("your browser does not support xmlhttprequest", 'error'); } } @@ -390,14 +391,14 @@ function save() { function saveResult(html) { if (html=="SUCCESS") { - alert(window.panelsavesuccess) + new XWiki.widgets.Notification(window.panelsavesuccess, 'done'); // this is for the "revert" button: leftPanels.savedPanelList = getBlocList(leftPanels); rightPanels.savedPanelList = getBlocList(rightPanels); leftPanels.isVisible = window.showLeftColumn; rightPanels.isVisible = window.showRightColumn; } else { - alert(window.panelsaveerror) + new XWiki.widgets.Notification(window.panelsaveerror, 'error'); alert(html) } }