No JS popup window
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 25 Apr 2007 20:15:21 +0000 (20:15 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 25 Apr 2007 20:15:21 +0000 (20:15 +0000)
sales/view/view_invoice.php

index 15471f8628acddbd16cedf154d670f47b078bf62..8c2fb857a970bb610133f1b71abefe901b1a5afb 100644 (file)
@@ -4,12 +4,16 @@ $page_security = 1;
 $path_to_root="../..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("View Sales Invoice"), true);
-
 include_once($path_to_root . "/sales/includes/sales_ui.inc");
 
 include_once($path_to_root . "/sales/includes/sales_db.inc");
 
+$js = "";
+if ($use_popup_windows)
+       $js .= get_js_open_window(900, 600);
+page(_("View Sales Invoice"), true, false, "", $js);
+
+
 if (isset($_GET["trans_no"]))
 {
        $trans_id = $_GET["trans_no"];