Return-Path: Delivered-To: apmail-tapestry-commits-archive@locus.apache.org Received: (qmail 49609 invoked from network); 13 Jun 2007 17:34:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 17:34:38 -0000 Received: (qmail 27748 invoked by uid 500); 13 Jun 2007 17:34:41 -0000 Delivered-To: apmail-tapestry-commits-archive@tapestry.apache.org Received: (qmail 27724 invoked by uid 500); 13 Jun 2007 17:34:41 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 27715 invoked by uid 99); 13 Jun 2007 17:34:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 10:34:40 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 10:34:37 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id C02401A981A; Wed, 13 Jun 2007 10:34:16 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r546971 - /tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js Date: Wed, 13 Jun 2007 17:34:16 -0000 To: commits@tapestry.apache.org From: jkuhnert@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070613173416.C02401A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jkuhnert Date: Wed Jun 13 10:34:15 2007 New Revision: 546971 URL: http://svn.apache.org/viewvc?view=rev&rev=546971 Log: Fixes TAPESTRY-1206 "for real" this time. The node.outerHTML call wasn't making previously disabled nodes enabled when the disabled attribute had been removed on the server side. Following a hunch I re looked up the node element again after replacing its contents and the attributes magically came over. Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js?view=diff&rev=546971&r1=546970&r2=546971 ============================================================================== --- tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js (original) +++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js Wed Jun 13 10:34:15 2007 @@ -236,12 +236,13 @@ var content=tapestry.html.getContentAsString(element); if (djConfig["isDebug"]) { - dojo.log.debug("Received element content for id <" + id + "> of: ", content); + dojo.log.debug("Received element content for id <" + id + "> of: " + content); } // fix for IE - setting innerHTML does not work for SELECTs if (tapestry.isIE && node.outerHTML && node.nodeName == "SELECT") { node.outerHTML = node.outerHTML.replace(/().*(<\/SELECT>)/, '$1' + content + '$2'); + node=dojo.byId(id); } else { if (content && content.length > 0) { node.innerHTML=content;