File: wwwoffle.js

package info (click to toggle)
wwwoffle 2.9f-2.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,716 kB
  • ctags: 2,077
  • sloc: ansic: 23,951; sh: 6,815; lex: 4,201; perl: 917; makefile: 623; ruby: 181; lisp: 14
file content (39 lines) | stat: -rw-r--r-- 926 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//------------------------------------------------//
//                                                //
// WWWOFFLE Version 2.9 - Javascript functions    //
//                                                //
//------------------------------------------------//

//--------------------------//
// Index Page Form handling //
//--------------------------//

// Check all of the checkboxes named 'url' on the specified form.

function form_make_url_checked(form)
{
 for(i=0;i<form.url.length;i++)
   {
    form.url[i].checked=true;
   }
}

// Uncheck all of the checkboxes named 'url' on the specified form.

function form_make_url_unchecked(form)
{
 for(i=0;i<form.url.length;i++)
   {
    form.url[i].checked=false;
   }
}

// Toggle all of the checkboxes named 'url' on the specified form.

function form_toggle_url_checked(form)
{
 for(i=0;i<form.url.length;i++)
   {
    form.url[i].checked=!form.url[i].checked;
   }
}