+
+
diff --git a/WebContent/main.js b/WebContent/main.js
index 4c757b664..d9af675d2 100644
--- a/WebContent/main.js
+++ b/WebContent/main.js
@@ -284,60 +284,12 @@ OSRM.parseParameters = function(){
// check whether to activate maintenance mode
OSRM.inMaintenance = function(){
if( OSRM.DEFAULTS.MAINTENANCE == true ) {
- OSRM.xnotify( OSRM.DEFAULTS.MAINTENANCE_HEADER, OSRM.DEFAULTS.MAINTENANCE_TEXT, false);
+ OSRM.GUI.exclusiveNotify( OSRM.DEFAULTS.MAINTENANCE_HEADER, OSRM.DEFAULTS.MAINTENANCE_TEXT, false);
return true;
}
return false;
};
-// important notifications
-OSRM.xnotify = function( header, text, closable ){
- document.getElementById('important-notification-blanket').style.display = "block";
- document.getElementById('important-notification-label').innerHTML = header;
- document.getElementById('important-notification-box').innerHTML = text;
- if( closable )
- document.getElementById('important-notification-toggle').onclick = OSRM.xdenotify;
- else
- document.getElementById('important-notification-toggle').style.display = "none";
-};
-OSRM.xdenotify = function() {
- document.getElementById('important-notification-blanket').style.display = "none";
-};
-
-
-// normal notification box
-OSRM.notify = function( header, text ){
- document.getElementById('notification-wrapper').style.display = "block";
- document.getElementById('notification-label').innerHTML = header;
- document.getElementById('notification-box').innerHTML = text;
- document.getElementById('notification-box').style.display = "block"; // trick to always obtain a closed notification box
- OSRM.resizeNotify();
-
- document.getElementById('notification-toggle').onclick = OSRM.denotify;
- document.getElementById('notification-resize').onclick = OSRM.resizeNotify;
-};
-OSRM.resizeNotify = function() {
- if( document.getElementById('notification-box').style.display == "none" ) {
- document.getElementById('notification-box').style.display = "block";
- var height = document.getElementById('notification-box').clientHeight;
- document.getElementById('notification-content').style.height = (height + 28) + "px";
- document.getElementById('notification-wrapper').style.height = (height + 48) + "px";
- document.getElementById('notification-resize').className = "iconic-button up-marker top-right-button";
- } else {
- document.getElementById('notification-box').style.display = "none";
- document.getElementById('notification-content').style.height = "18px";
- document.getElementById('notification-wrapper').style.height = "38px";
- document.getElementById('notification-resize').className = "iconic-button down-marker top-right-button";
- }
-};
-OSRM.denotify = function() {
- document.getElementById('notification-wrapper').style.display = "none";
-};
-OSRM.isNotifyVisible = function() {
- return document.getElementById('notification-wrapper').style.display == "block";
-};
-
-
// onload event
OSRM.Browser.onLoadHandler( OSRM.init );
\ No newline at end of file