Parent Directory
|
Revision Log
|
Revision Graph
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 |