Stock viewer popup should be displayd without menu header.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 29 Oct 2013 07:06:58 +0000 (08:06 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 31 Oct 2013 18:48:06 +0000 (19:48 +0100)
includes/ui/ui_view.inc
inventory/inquiry/stock_status.php

index 5ed17abd8c96eae5790b2e872f4aac86366dde05..f16e72f7cd809c585bed941447b3ddee9c87735d 100644 (file)
@@ -386,10 +386,10 @@ function view_stock_status($stock_id, $description=null, $echo=true)
        global $path_to_root;
        if ($description)
                //hyperlink_params_separate($path_to_root . "/inventory/inquiry/stock_status.php", (user_show_codes()?$stock_id . " - ":"") . $description, "stock_id=$stock_id");
-               $preview_str = "<a target='_blank' href='$path_to_root/inventory/inquiry/stock_status.php?stock_id=$stock_id' onclick=\"javascript:openWindow(this.href,this.target); return false;\" >". (user_show_codes()?$stock_id . " - ":"") . $description."</a>";
+               $preview_str = "<a target='_blank' href='$path_to_root/inventory/inquiry/stock_status.php?stock_id=$stock_id&popup=1' onclick=\"javascript:openWindow(this.href,this.target); return false;\" >". (user_show_codes()?$stock_id . " - ":"") . $description."</a>";
        else
                //hyperlink_params_separate($path_to_root . "/inventory/inquiry/stock_status.php", $stock_id, "stock_id=$stock_id");
-               $preview_str = "<a target='_blank' href='$path_to_root/inventory/inquiry/stock_status.php?stock_id=$stock_id' onclick=\"javascript:openWindow(this.href,this.target); return false;\" >$stock_id</a>";
+               $preview_str = "<a target='_blank' href='$path_to_root/inventory/inquiry/stock_status.php?stock_id=$stock_id&popup=1' onclick=\"javascript:openWindow(this.href,this.target); return false;\" >$stock_id</a>";
        if($echo)
                echo $preview_str;
        return $preview_str;
index 146422fa6bfc5772fa8a924b0f364314901806e9..d0307d5a94cb4c35db859ec0f29f6ee912e269fe 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_ITEMSSTATVIEW';
 $path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_($help_context = "Inventory Item Status"));
+page(_($help_context = "Inventory Item Status"), @$_GET['popup']);
 
 if (isset($_GET['stock_id']))
        $_POST['stock_id'] = $_GET['stock_id'];