Changeset 2429 for trunk/template-common
- Timestamp:
- Jul 12, 2008, 2:30:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/template-common/scripts.js
r2413 r2429 5 5 for( i = 0; i < len; i++) 6 6 { 7 8 9 10 formulaire.elements[i].checked = true;11 7 if ( formulaire.elements[i].type=='checkbox' 8 && formulaire.elements[i].name != 'copie') 9 { 10 formulaire.elements[i].checked = true; 11 } 12 12 } 13 13 } … … 19 19 for( i = 0; i < len; i++) 20 20 { 21 22 23 21 if ( formulaire.elements[i].type=='checkbox' 22 && formulaire.elements[i].name != 'copie') 23 { 24 24 formulaire.elements[i].checked = false; 25 25 } 26 26 } 27 27 } … … 33 33 for( i=0; i<len; i++) 34 34 { 35 36 37 35 if ( formulaire.elements[i].type=='checkbox' 36 && formulaire.elements[i].name != 'copie') 37 { 38 38 formulaire.elements[i].checked = !formulaire.elements[i].checked; 39 39 } 40 40 } 41 41 } … … 43 43 function phpWGOpenWindow(theURL,winName,features) 44 44 { 45 46 47 48 49 50 51 52 53 54 55 56 57 58 45 img = new Image(); 46 img.src = theURL; 47 if (img.complete) 48 { 49 var width=img.width +40; 50 var height=img.height +40; 51 } 52 else 53 { 54 var width=640; 55 var height=480; 56 img.onload = resizeWindowToFit; 57 } 58 newWin = window.open(theURL,winName,features+',left=2,top=1,width=' + width + ',height=' + height); 59 59 } 60 60 61 61 function resizeWindowToFit() 62 62 { 63 63 newWin.resizeTo( img.width+50, img.height+100); 64 64 } 65 65 66 66 function popuphelp(url) 67 67 { 68 window.open( 69 url, 70 'dc_popup', 71 'alwaysRaised=yes,dependent=yes,toolbar=no,height=420,width=500,menubar=no,resizable=yes,scrollbars=yes,status=no' 72 ); 68 window.open( url, 'dc_popup', 69 'alwaysRaised=yes,dependent=yes,toolbar=no,height=420,width=500,menubar=no,resizable=yes,scrollbars=yes,status=no' 70 ); 73 71 } 74 72 … … 155 153 catch (e) 156 154 { 157 this.dispatchError( 200, e.message + '\n' + transport.responseText.substr(0, 256).escapeHTML() );155 this.dispatchError( 200, e.message + '\n' + transport.responseText.substr(0,512) ); 158 156 } 159 157 if (resp!=null)
Note: See TracChangeset
for help on using the changeset viewer.