Author: mgrigorov
Date: Thu Jun 30 13:46:17 2011
New Revision: 1141535

URL: http://svn.apache.org/viewvc?rev=1141535&view=rev
Log:
WICKET-3847 Modal window won't show in internet explorer document mode 8


Modified:
    wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
    
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js

Modified: 
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js?rev=1141535&r1=1141534&r2=1141535&view=diff
==============================================================================
--- 
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js 
(original)
+++ 
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js 
Thu Jun 30 13:46:17 2011
@@ -356,6 +356,12 @@ Wicket.replaceOuterHtmlSafari = function
  * browsers that don't do that automatically.
  * Also this method takes care of replacing table elements (tbody, tr, td, 
thead)
  * on browser where it's not supported when using outerHTML (IE).
+ * 
+ * This method sends notifications to all subsribers for channels with names
+ * '/dom/node/removing' with the element that is going to be replaced and 
+ * '/dom/node/added' with the newly created element (the replacement).
+ * 
+ * Note: the 'to be replaced' element must have an 'id' attribute
  */
 Wicket.replaceOuterHtml = function(element, text) {    
 

Modified: 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js?rev=1141535&r1=1141534&r2=1141535&view=diff
==============================================================================
--- 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
 (original)
+++ 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
 Thu Jun 30 13:46:17 2011
@@ -352,6 +352,7 @@ Wicket.Window.prototype = { 
                                         idBottom, idCaptionText, 
this.isIframe());                                                             
                
                var element = document.createElement("div");
+               element.id = idWindow;
                document.body.appendChild(element);             
                Wicket.replaceOuterHtml(element, markup);
                                


Reply via email to