From: <ms...@us...> - 2010-03-02 17:55:11
|
Revision: 10708 http://wonder.svn.sourceforge.net/wonder/?rev=10708&view=rev Author: mschrag Date: 2010-03-02 17:54:37 +0000 (Tue, 02 Mar 2010) Log Message: ----------- fixed some issues with ibox losing the ibox open link after an update Modified Paths: -------------- trunk/Wonder/Frameworks/Ajax/Ajax/WebServerResources/ibox/ibox.js Modified: trunk/Wonder/Frameworks/Ajax/Ajax/WebServerResources/ibox/ibox.js =================================================================== --- trunk/Wonder/Frameworks/Ajax/Ajax/WebServerResources/ibox/ibox.js 2010-03-02 17:54:13 UTC (rev 10707) +++ trunk/Wonder/Frameworks/Ajax/Ajax/WebServerResources/ibox/ibox.js 2010-03-02 17:54:37 UTC (rev 10708) @@ -62,6 +62,8 @@ * @param {String} tag_name */ checkTags: function(container, tag_name) { + // MS: added setTimeout to checkTags at the end of the render pass + setTimeout(function() { if (!container) var container = document.body; if (!tag_name) var tag_name = 'a'; var els = container.getElementsByTagName(tag_name); @@ -73,6 +75,7 @@ } } } + }, 0); }, /** @@ -734,7 +737,12 @@ var _initialized = false; var initialize = function() { // make sure we haven't already done this - if (_initialized) return; + if (_initialized) { + // MS: added checkTags call here on a second init, so after an ajax update we + // reprocess ibox links + _pub.checkTags(document.body, 'a'); + return; + } _initialized = true; // elements here start the look up from the start non <a> tags // MS check for an existing ibox This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |