From 5eafc6def5c68199d7c843d4e2b86ec8db81b3f3 Mon Sep 17 00:00:00 2001 From: Scott Dale Date: Sat, 7 Jul 2007 03:32:25 +0000 Subject: [PATCH] update index page with new feature to hide all widgets when help is shown --- usr/local/www/index.php | 45 ++++++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/usr/local/www/index.php b/usr/local/www/index.php index ff4010d530..3b5da44bc3 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -196,14 +196,22 @@ foreach($phpincludefiles as $includename) { $jscriptstr = << -function addDiv(selectedDiv){ +function addDiv(selectedDiv){ selectedDiv = selectedDiv + "-div"; - Effect.Appear(selectedDiv, {duration:1}); - d = document; - selectIntLink = selectedDiv + "-input"; - textlink = d.getElementById(selectIntLink); - textlink.value = "show"; - showSave(); + textlink = d.getElementById(selectedDiv); + if (textlink.style.display != "none") + { + Effect.Shake(selectedDiv); + } + else + { + Effect.Appear(selectedDiv, {duration:1}); + d = document; + selectIntLink = selectedDiv + "-input"; + textlink = d.getElementById(selectIntLink); + textlink.value = "show"; + showSave(); + } } function configureDiv(selectedDiv){ @@ -296,6 +304,14 @@ function updatePref(){ return true; } +function hideAllWidgets(){ + Effect.Fade('niftyOutter', {to: 0.2}); +} + +function showAllWidgets(){ + Effect.Fade('niftyOutter', {to: 1.0}); +} + EOD; $closehead = false; @@ -358,14 +374,14 @@ echo $jscriptstr;
Welcome to the New Dashboard page!
-
+

This page allows you to customize the information you want to be displayed!
- To get started click the icon to add additional widgets.
+ To get started click the icon to add widgets.

You can move any widget around by clicking and dragging the title.

@@ -376,7 +392,11 @@ echo $jscriptstr;

Dashboard    -Click here to add widgets +Click here to add widgets + +Click here for help + +    

@@ -537,8 +557,9 @@ echo $jscriptstr; window.onload = function(in_event) - { - domTT_activate('welcome1', null, 'x', 272, 'y', 107, 'content', document.getElementById('welcome-div'), 'type', 'sticky', 'closeLink', '','delay', 500, 'fade', 'both', 'fadeMax', 100, 'styleClass', 'niceTitle'); + { + hideAllWidgets(); + domTT_activate('welcome1', null, 'x', 287, 'y', 107, 'content', document.getElementById('welcome-div'), 'type', 'sticky', 'closeLink', '','delay', 1000, 'fade', 'both', 'fadeMax', 100, 'styleClass', 'niceTitle'); } //