Author: dward
Date: 2007-10-15 22:59:25 +0200 (Mon, 15 Oct 2007)
New Revision: 5397
Modified:
xwiki-products/curriki/trunk/web/src/main/webapp/gwt2.js
Log:
- CURRIKI-1009
- Fixup javascript so that it works better (with prototype installed). Don't
use onReady.
Modified: xwiki-products/curriki/trunk/web/src/main/webapp/gwt2.js
===================================================================
--- xwiki-products/curriki/trunk/web/src/main/webapp/gwt2.js 2007-10-15
19:36:36 UTC (rev 5396)
+++ xwiki-products/curriki/trunk/web/src/main/webapp/gwt2.js 2007-10-15
20:59:25 UTC (rev 5397)
@@ -590,18 +590,18 @@
// Uses jquery.js (should be loaded)
function displayLoadingMsg() {
if (window.jQuery)
- jQuery(function($){
+ (function($){
// Put the dialogue box up
//This is a translated string (which means it cannot be sent by
apache)
- $("<div id='loadingGWT' class='tk-ModalDialog dialog-loading'><div
id='loadingGWTMsg'>$msg.get('loading.loading_msg')</div><div
id='loadingGWTImg'><img src='/xwiki/skins/curriki8/icons/spinner.gif'
/></div></div>").append('body').show();
- });
+ $("<div id='loadingGWT' class='tk-ModalDialog dialog-loading'><div
id='loadingGWTMsg'>$msg.get('loading.loading_msg')</div><div
id='loadingGWTImg'><img src='/xwiki/skins/curriki8/icons/spinner.gif'
/></div></div>").appendTo('body');
+ })(jQuery);
}
function hideLoadingMsg() {
if (window.jQuery)
- jQuery(function($){
- $('#loadingGWT').hide();
- });
+ (function($){
+ $('#loadingGWT').remove();
+ })(jQuery);
return true;
}
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications