Enabling popup search in Customers, branches, suppliers, inventory, fixed assets...
[fa-stable.git] / inventory / manage / item_categories.php
index d63354d1a8971309a493b97af4565a56f2f8989b..cd39e498dd463736f7ed8ba3dbf2568084ae758e 100644 (file)
@@ -15,14 +15,18 @@ include($path_to_root . "/includes/session.inc");
 
 if (isset($_GET['FixedAsset'])) {
   $page_security = 'SA_ASSETCATEGORY';
-  $help_context = "FA Item Categories";
+  $help_context = "Fixed Assets Categories";
   $_POST['mb_flag'] = 'F';
 }
 else {
   $help_context = "Item Categories";
 }
 
-page(_($help_context));
+$js = "";
+if ($SysPrefs->use_popup_windows && $SysPrefs->use_popup_search)
+       $js .= get_js_open_window(900, 500);
+
+page(_($help_context), false, false, "", $js);
 
 include_once($path_to_root . "/includes/ui.inc");