Author: wesleyhales
Date: 2008-03-19 14:05:25 -0400 (Wed, 19 Mar 2008)
New Revision: 10335
Modified:
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/js/admin.js
Log:
remove collapse onload
Modified: modules/portlet/trunk/portal/src/main/resources/simple-portal-war/js/admin.js
===================================================================
---
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/js/admin.js 2008-03-19
14:33:37 UTC (rev 10334)
+++
modules/portlet/trunk/portal/src/main/resources/simple-portal-war/js/admin.js 2008-03-19
18:05:25 UTC (rev 10335)
@@ -42,5 +42,15 @@
//collapse all on page load
window.onload = function(){
- collapseAll()
+// collapseAll()
+ var targets = document.getElementsByClassName('target');
+ for (var i=0; i < targets.length; i++){
+ try{
+ var target =
targets[i].id.substring(0,targets[i].id.lastIndexOf('-target'));
+ $('expand-' + target).hide();
+ Effect.Appear('contract-' + target, { duration: 0.0 });
+ }catch(e){
+// alert(e);
+ }
+ }
};
\ No newline at end of file
Show replies by date