You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2017/06/09 09:39:36 UTC

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

Author: weber
Date: Fri Jun  9 09:39:36 2017
New Revision: 1798180

URL: http://svn.apache.org/viewvc?rev=1798180&view=rev
Log:
Revert wrong commit 1798031: TOBAGO-1749 - ColumnSelector Checkbox should render name attribute

Modified:
    myfaces/tobago/branches/tobago-2.0.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-2.0.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-2.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1798180&r1=1798179&r2=1798180&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-2.0.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-2.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Fri Jun  9 09:39:36 2017
@@ -2302,7 +2302,14 @@ Tobago.Updater = {
           if (element.size() == 0 && newElement.hasClass("tobago-popup")) {
             element = jQuery("<div>");
             element.attr("id", data.ajaxId);
-            jQuery('form').append(element);
+            // try append the popup before the jsf-state-container span because of IE bug see TOBAGO-1749
+            var formElement = jQuery('form');
+            var lastSpan = formElement.find("span").last();
+            if (lastSpan.attr("id").indexOf("::jsf-state-container") > 0) {
+              lastSpan.before(element);
+            } else {
+              formElement.append(element);
+            }
           }
           element.replaceWith(newElement);
         }