You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/04/19 15:48:44 UTC

svn commit: r1469829 - /myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Author: lofwyr
Date: Fri Apr 19 13:48:44 2013
New Revision: 1469829

URL: http://svn.apache.org/r1469829
Log:
TOBAGO-1250: Wait-Animation while submit doesn't work on some browsers

Modified:
    myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Modified: myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1469829&r1=1469828&r2=1469829&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Fri Apr 19 13:48:44 2013
@@ -430,13 +430,12 @@ var Tobago = {
 
     Tobago.ie6bugfix(element.get(0));
 
-    element.append(
-        "<div class='tobago-page-overlay tobago-page-overlay-markup-" + (error ? "error" : "wait") + "'>"
-            + "<div class='tobago-page-overlayCenter'>"
-            + "</div>"
-            + "</div>");
-
-    var wait = element.find(".tobago-page-overlayCenter");
+    var overlay = error
+        ? jQuery("<div class='tobago-page-overlay tobago-page-overlay-markup-error'></div>")
+        : jQuery("<div class='tobago-page-overlay tobago-page-overlay-markup-wait'></div>");
+    element.append(overlay);
+    var wait = jQuery("<div class='tobago-page-overlayCenter'></div>");
+    overlay.append(wait);
     var image = jQuery(error
         ? "body > .tobago-page-overlayErrorPreloadedImage"
         : "body > .tobago-page-overlayWaitPreloadedImage");
@@ -447,6 +446,7 @@ var Tobago = {
     }
     image.appendTo(wait).removeClass("tobago-page-overlayWaitPreloadedImage tobago-page-overlayErrorPreloadedImage");
     wait.show();
+    overlay.show();
 
     if (jQuery.browser.msie && parseInt(jQuery.browser.version) <= 6) {
       element.children(".tobago-page-overlay")