浏览代码

Call composenew via pageheader

stekkel 23 年之前
父节点
当前提交
25d9ce4e2a
共有 1 个文件被更改,包括 2 次插入12 次删除
  1. 2 12
      src/right_main.php

+ 2 - 12
src/right_main.php

@@ -107,18 +107,8 @@ if( isset($do_hook) && $do_hook ) {
 
 sqimap_mailbox_select($imapConnection, $mailbox);
 
-if (isset($composenew)) {
-    $width= getPref($data_dir, $username, 'editor_size', 76);
-    if ($width < 65) {
-        $pix_width = 560;
-    } else {
-        $width = (.9*$width);
-        $pix_width = intval($width).'0';
-    }
-    $features = "toolbar=no, width=$pix_width, height=650, scrollbars=yes, resizable=yes target=_blank";
-    $location = 'compose.php?mailbox='. urlencode($mailbox).'&attachedmessages=true&session='."$session";
-    $onload= "window.open(\"$location\",\"compose_window_$session\", \"$features\");";
-    displayPageHeader($color, $mailbox, $onload);
+if (isset($composenew) && $composenew) {
+    displayPageHeader($color, $mailbox, 'comp_in_new();');
 } else {
     displayPageHeader($color, $mailbox);
 }