mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
closeWindow() js call allows popup to close and refresh parent browser window. Very
handy for popup edit boxes
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
| e107 website system - Javascript File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_files/e107.js,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:33:36 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-01-17 13:04:50 $
|
||||
| $Author: mrpete $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -153,6 +153,15 @@ function openwindow() {
|
||||
opener.focus();
|
||||
}
|
||||
|
||||
function closeWindow(form){
|
||||
if((window.opener!=null)&&(!window.opener.closed)){
|
||||
window.opener.location.reload();
|
||||
}
|
||||
if(window.opener!=null) {
|
||||
window.close();
|
||||
}else{setWinType(form);form.whatAction.value="Close";form.submit();}
|
||||
}
|
||||
|
||||
function setCheckboxes(the_form, do_check, the_cb){
|
||||
var elts = (typeof(document.forms[the_form].elements[the_cb]) != 'undefined') ? document.forms[the_form].elements[the_cb] : document.forms[the_form].elements[the_cb];
|
||||
var elts_cnt = (typeof(elts.length) != 'undefined') ? elts.length : 0;
|
||||
|
Reference in New Issue
Block a user