@@ -157,7 +157,10 @@ javaxt.express.app.Horizon = function(parent, config) {
157157
158158 connectionTimeout : "We have lost contact with the server. " +
159159 "It has been unavailable for over 5 minutes. Please check your " +
160- "internet connection or contact the system administrator for assistance."
160+ "internet connection or contact the system administrator for assistance." ,
161+
162+ updateAvailable : "An update is available for this application. " +
163+ "Would you like to update now?"
161164 }
162165 } ;
163166
@@ -641,11 +644,11 @@ javaxt.express.app.Horizon = function(parent, config) {
641644 location . reload ( ) ;
642645 }
643646 else {
647+ me . el . style . filter = "blur(3px)" ;
644648 confirm ( {
645649 width : 515 ,
646650 title : "Update Available" ,
647- text : "An update is available for this application. " +
648- "Would you like to update now?" ,
651+ text : config . messages . updateAvailable ,
649652 leftButton : {
650653 label : "Yes" ,
651654 value : true
@@ -657,6 +660,7 @@ javaxt.express.app.Horizon = function(parent, config) {
657660 callback : function ( answer ) {
658661 if ( answer === true ) location . reload ( ) ;
659662 else {
663+ me . el . style . filter = "" ;
660664 menuButton . showMessage ( "Update Available" ) ;
661665 }
662666 }
@@ -1284,17 +1288,20 @@ javaxt.express.app.Horizon = function(parent, config) {
12841288 currUser = null ;
12851289
12861290
1291+ //Update title
1292+ document . title = config . name ;
1293+
1294+
12871295 //Update URL
12881296 if ( config . useBrowserHistory === true ) {
12891297 var state = window . history . state ;
12901298 if ( ! state ) state = { } ;
12911299 var url = window . location . href ;
12921300 var idx = url . indexOf ( "?" ) ;
12931301 if ( idx > - 1 ) url = url . substring ( 0 , idx ) ;
1294- document . title = config . name ;
12951302 history . replaceState ( state , config . name , url ) ;
12961303 }
1297-
1304+
12981305
12991306 //Disable event listeners
13001307 disableEventListeners ( ) ;
@@ -1380,7 +1387,7 @@ javaxt.express.app.Horizon = function(parent, config) {
13801387 }
13811388 }
13821389 if ( ! callout ) callout = new javaxt . dhtml . Callout ( document . body , {
1383- style : config . style . callout
1390+ style : config . style . javaxt . callout
13841391 } ) ;
13851392 return callout ;
13861393 } ;
0 commit comments