source: trunk/include/scripts.js @ 1156

Last change on this file since 1156 was 1114, checked in by rvelices, 18 years ago

NBM: check/uncheck all completely done by Javascript

NBM: add function make_index_absolute_url

NBM: add function get_user_notifications and simplified code

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 KB
Line 
1function SelectAll( formulaire )
2{
3len = formulaire.elements.length;
4var i=0;
5for( i = 0; i < len; i++)
6{
7  if ( formulaire.elements[i].type=='checkbox'
8           && formulaire.elements[i].name != 'copie')
9  {
10        formulaire.elements[i].checked = true;
11  }
12}
13}
14
15function DeselectAll( formulaire )
16{
17len = formulaire.elements.length;
18var i=0;
19for( i = 0; i < len; i++)
20{
21  if ( formulaire.elements[i].type=='checkbox'
22           && formulaire.elements[i].name != 'copie')
23  {
24        formulaire.elements[i].checked = false;
25  }
26}
27}
28
29function Inverser( formulaire )
30{
31len = formulaire.elements.length;
32var i=0;
33for( i=0; i<len; i++)
34{
35  if ( formulaire.elements[i].type=='checkbox'
36           && formulaire.elements[i].name != 'copie')
37  {
38        formulaire.elements[i].checked = !formulaire.elements[i].checked;
39  }
40}
41}
42
43function phpWGOpenWindow(theURL,winName,features)
44{
45  window.open(theURL,winName,features);
46}
47
48function popuphelp(url)
49{
50  window.open(
51    url,
52    'dc_popup',
53    'alwaysRaised=yes,dependent=yes,toolbar=no,height=420,width=500,menubar=no,resizable=yes,scrollbars=yes,status=no'
54  );
55}
56
Note: See TracBrowser for help on using the repository browser.