/[drupal]/contributions/themes/civicspace/scripts/utility.js
ViewVC logotype

Contents of /contributions/themes/civicspace/scripts/utility.js

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


Revision 1.2 - (show annotations) (download) (as text)
Mon Aug 29 21:52:13 2005 UTC (4 years, 2 months ago) by robinmonks
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--2, DRUPAL-4-7
Changes since 1.1: +3 -1 lines
File MIME type: text/javascript
Add correct info strings to all files.
1 /* $Id: 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