Author: dgoette
Date: Mon May 18 18:23:26 2009
New Revision: 418
URL:
http://svn.reactos.org/svn/reactos?rev=418&view=rev
Log:
reapply unload message
Modified:
branches/danny-web/www/www.reactos.org/roscms/js/cms.js
branches/danny-web/www/www.reactos.org/roscms/js/cms_website-init.js
branches/danny-web/www/www.reactos.org/roscms/lib/view/HTML_CMS_Website.cla…
Modified:
branches/danny-web/www/www.reactos.org/roscms/js/cms.js
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/r…
==============================================================================
---
branches/danny-web/www/www.reactos.org/roscms/js/cms.js [iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/roscms/js/cms.js [iso-8859-1] Mon May 18
18:23:26 2009
@@ -39,7 +39,7 @@
*/
function loadBranch( )
{
- exitmsg = '';
+ window.onbeforeunload = null;
} // end of function loadBranch
Modified:
branches/danny-web/www/www.reactos.org/roscms/js/cms_website-init.js
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/r…
==============================================================================
---
branches/danny-web/www/www.reactos.org/roscms/js/cms_website-init.js [iso-8859-1]
(original)
+++
branches/danny-web/www/www.reactos.org/roscms/js/cms_website-init.js [iso-8859-1] Mon
May 18 18:23:26 2009
@@ -49,12 +49,7 @@
roscms_page_load_finished = true;
// window unload blocker
-if (exitmsg !== '') {
- window.onbeforeunload = exitmsg;
-}
-else {
- window.onbeforeunload = false;
-}
+window.onbeforeunload = function() { return "Click Cancel to continue with RosCMS,
click OK to leave RosCMS.\n\nThanks for using RosCMS!" };
// initialise tinyMCE
tinyMCE.init({
Modified:
branches/danny-web/www/www.reactos.org/roscms/lib/view/HTML_CMS_Website.cla…
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/r…
==============================================================================
---
branches/danny-web/www/www.reactos.org/roscms/lib/view/HTML_CMS_Website.cla…
[iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/roscms/lib/view/HTML_CMS_Website.cla…
[iso-8859-1] Mon May 18 18:23:26 2009
@@ -109,8 +109,6 @@
// favorite user language
var userlang = ".$thisuser->language().";
-
- var exitmsg = ".'"Click Cancel to continue with RosCMS, click OK to
leave RosCMS.\n\nThanks for using RosCMS!"'."
-->
</script>";echo_strip('
<div id="alertbox">