Changeset 4619
- Timestamp:
- 08/01/07 00:22:25 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.3/amp_conf/htdocs/admin/common/interface.dim.js
r4448 r4619 4 4 /** Dim the screen, and show a modal box (a div) 5 5 */ 6 function freepbx_modal_show(divID ) {6 function freepbx_modal_show(divID,callback) { 7 7 // hack: find the "real" height: the height of the header, plus either nav or wrapper, whichever is longer 8 8 obj = $('#'+divID); … … 27 27 // show box 28 28 obj.fadeIn(300); 29 if (callback) { 30 callback(); 31 } 29 32 }); 30 33 } 31 34 32 35 /** Hide the modal box, but don't get rid of the dimmed screen */ 33 function freepbx_modal_hide(divID ) {36 function freepbx_modal_hide(divID, callback) { 34 37 $('#__dimScreen').css('cursor','wait'); 35 $('#'+divID).fadeOut(300 );38 $('#'+divID).fadeOut(300, callback); 36 39 } 37 40 38 41 /** Close the modal box, undim the screen */ 39 function freepbx_modal_close(divID ) {42 function freepbx_modal_close(divID, callback) { 40 43 obj = $('#'+divID); 41 44 if (obj.css('display') != 'block') { … … 50 53 // show select boxes, IE shows them overtop of everything 51 54 hideSelects(false); 55 } 56 57 if (callback) { 58 callback(); 52 59 } 53 60 });
