/[drupal]/contributions/sandbox/goba/admin/scripts/utility.js
ViewVC logotype

Contents of /contributions/sandbox/goba/admin/scripts/utility.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Aug 16 14:30:02 2006 UTC (3 years, 3 months ago) by goba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/javascript
an admin theme extracted from the civicspace theme, which 'kinda' works with Drupal HEAD (there are some CSS problems)
1 /* $Id: utility.js,v 1.2 2005/08/29 21:52:13 robinmonks Exp $ */
2
3 // functions for clearing and restoring input field values
4
5 function clearText(thefield) {
6 if (thefield.defaultValue == thefield.value)
7 {
8 thefield.value = ""; // if the field hasn't been edited, clear it
9 }
10 }
11 function replaceText(thefield) {
12 if (thefield.value == "")
13 {
14 thefield.value = thefield.defaultValue; // if the field hasn't been edited, restore the default value
15 }
16 }

  ViewVC Help
Powered by ViewVC 1.1.2