File: aws_func_clear.tjs

package info (click to toggle)
libaws 2.2dfsg-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 7,624 kB
  • ctags: 1,173
  • sloc: ada: 61,829; ansic: 6,483; makefile: 1,282; xml: 196; sh: 119; java: 112; python: 66; sed: 40
file content (13 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13

@@-- Function Body
@@-- $1 = the id of the area to clear

@@SET@@ FC_PLACEHOLDER = $1

   {
      var placeholder = $('@_FC_PLACEHOLDER_@');
      if (placeholder.tagName == "TEXTAREA" || placeholder.tagName == "INPUT")
         placeholder.value = "";
      else
         placeholder.innerHTML = "";
   }