forked from gCubeSystem/rmp-common-library
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/rmp-common-library@82346 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ffd5fea81e
commit
45114ccdf3
|
@ -160,8 +160,7 @@ function __gwt_disconnected_impl() {
|
||||||
__gwt_displayGlassMessage('GWT Code Server Disconnected',
|
__gwt_displayGlassMessage('GWT Code Server Disconnected',
|
||||||
'Most likely, you closed GWT Development Mode. Or, you might have lost '
|
'Most likely, you closed GWT Development Mode. Or, you might have lost '
|
||||||
+ 'network connectivity. To fix this, try restarting GWT Development Mode and '
|
+ 'network connectivity. To fix this, try restarting GWT Development Mode and '
|
||||||
+ '<a style="color: #FFFFFF; font-weight: bold;" href="javascript:location.reload()">'
|
+ 'refresh this page.');
|
||||||
+ 'REFRESH</a> this page.');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Keep track of z-index to allow layering of multiple glass messages
|
// Keep track of z-index to allow layering of multiple glass messages
|
||||||
|
@ -295,20 +294,22 @@ gwtOnLoad = function(errFn, modName, modBase){
|
||||||
if (errFn) {
|
if (errFn) {
|
||||||
errFn(modName);
|
errFn(modName);
|
||||||
} else {
|
} else {
|
||||||
__gwt_displayGlassMessage("Plugin failed to connect to Development Mode server at " +
|
__gwt_displayGlassMessage(
|
||||||
simpleEscape($hosted),
|
"Plugin failed to connect to Development Mode server at " + simpleEscape($hosted),
|
||||||
"Follow the underlying troubleshooting instructions");
|
"Follow the troubleshooting instructions at "
|
||||||
loadIframe("http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM");
|
+ "<a href='http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM'>"
|
||||||
|
+ "http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM</a>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function simpleEscape(originalString) {
|
function simpleEscape(originalString) {
|
||||||
return originalString.replace("&","&")
|
return originalString.replace(/&/g,"&")
|
||||||
.replace("<","<")
|
.replace(/</g,"<")
|
||||||
.replace(">",">")
|
.replace(/>/g,">")
|
||||||
.replace("\"",""");
|
.replace(/\'/g, "'")
|
||||||
|
.replace(/\"/g,""");
|
||||||
}
|
}
|
||||||
|
|
||||||
window.onunload = function() {
|
window.onunload = function() {
|
||||||
|
|
Loading…
Reference in New Issue