Changeset 3913 for branches/2.2/filemanager/js/common_functions.js
- Timestamp:
- 03/25/11 12:36:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/filemanager/js/common_functions.js
r3888 r3913 31 31 } 32 32 33 function configEvents(pObj, pEvent, pHandler) 34 { 35 if ( typeof pObj == 'object' ) 36 { 37 if ( pEvent.substring(0, 2) == 'on' ) 38 pEvent = pEvent.substring(2, pEvent.length ); 39 40 if ( arguments.length == 3 ) 41 { 42 if ( pObj.addEventListener ) 43 pObj.addEventListener(pEvent, pHandler, false ); 44 else if ( pObj.attachEvent ) 45 pObj.attachEvent( 'on' + pEvent, pHandler ); 46 } 47 else if ( arguments.length == 4 ) 48 { 49 if ( pObj.removeEventListener ) 50 pObj.removeEventListener( pEvent, pHandler, false ); 51 else if ( pObj.detachEvent ) 52 pObj.detachEvent( 'on' + pEvent, pHandler ); 53 } 54 } 55 } 56 33 57 function maxFileSize() 34 58 { … … 172 196 var _html = Xtools.parse( Xtools.xml("upload_files"), "upload.xsl", pArgs ); 173 197 174 draw_window( _html, 490, 350, get_lang("upload files"), "newUpload" );198 draw_window( _html, 550, 350, get_lang("upload files"), "newUpload" ); 175 199 176 200 if( pArgs.emails_to != null )
Note: See TracChangeset
for help on using the changeset viewer.