Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/script.js =================================================================== diff -u -r6867 -r6889 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/script.js (.../script.js) (revision 6867) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/script.js (.../script.js) (revision 6889) @@ -162,7 +162,7 @@ $form.submit(); processHooks('SubmitKF', hAFTER); $form.target = ''; - $form.t.value = t; + set_hidden_field('t', t); window.setTimeout(function() {submitted = false}, 500); } @@ -414,6 +414,11 @@ // alert('openwin: name = ['+$name+']'); var left = Math.round((screen.width - $width)/2); var top = Math.round((screen.height - $height)/2); + + cur_x = is.ie ? window.screenLeft : window.screenX; + cur_y = is.ie ? window.screenTop : window.screenY; + +// alert('current X,Y: '+cur_x+','+cur_y+' target x,y: '+left+','+top); var $window_params = 'left='+left+',top='+top+',width='+$width+',height='+$height+',status=yes,resizable=yes,menubar=no,scrollbars=yes,toolbar=no'; return window.open($url,$name,$window_params); } @@ -431,7 +436,7 @@ var $window_name = $t.replace(/(\/|-)/g, '_'); // replace "/" and "-" with "_" var $window_size = '750x400'; // query with AJAX later $window_size = $window_size.split('x'); - + openwin('', $window_name, $window_size[0], $window_size[1]); $kf.target = $window_name;