- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 15 Sep 2009 16:00:14 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/WebContent/scripts
In directory hutz:/tmp/cvs-serv16530/WebContent/scripts
Modified Files:
w3c_unicorn_results.js
Log Message:
hidden sections are now set to display:none to increase observer fold/unfold speed if its sections are hidden
Index: w3c_unicorn_results.js
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/scripts/w3c_unicorn_results.js,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- w3c_unicorn_results.js 15 Sep 2009 13:01:34 -0000 1.9
+++ w3c_unicorn_results.js 15 Sep 2009 16:00:12 -0000 1.10
@@ -103,9 +103,13 @@
title.removeClass('toggled');
section.store('open', false);
if (withFx && opened) {
- slide.slideOut();
+ slide.slideOut().chain(function(){
+ section.getElement('div').setStyle('display', 'none');
+ slide.callChain();
+ });
} else {
slide.hide();
+ section.getElement('div').setStyle('display', 'none');
}
},
@@ -115,6 +119,7 @@
var slide = section.retrieve('fxSlide');
title.addClass('toggled');
section.store('open', true);
+ section.getElement('div').setStyle('display', '');
if (withFx && closed) {
slide.slideIn().chain(function(){
section.getElement('div').setStyle('height', 'auto');
Received on Tuesday, 15 September 2009 16:00:24 UTC