From: Joe Hunt Date: Sun, 8 Jan 2012 22:29:30 +0000 (+0100) Subject: Option in config.php for using an icon for editkey after combobox. X-Git-Tag: 2.3-final~502 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=eabd55f8ffc01d28b6b0af9d0352424355188551 Option in config.php for using an icon for editkey after combobox. --- diff --git a/config.default.php b/config.default.php index 2cb027a8..9bc4dae1 100644 --- a/config.default.php +++ b/config.default.php @@ -68,6 +68,9 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_ $power_by = "FrontAccounting"; $power_url = "http://frontaccounting.com"; + /* Use icon for editkey (=true) righ of combobox. 1 = use, 0 = do not use */ + $use_icon_for_editkey = 0; + /* Creates automatic a default branch with contact. Value 0 do not create auto branch */ $auto_create_branch = 1; diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index d83a4703..91722536 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -419,8 +419,10 @@ function _format_add_curr($row) function add_edit_combo($type) { - global $path_to_root, $popup_editors; + global $path_to_root, $popup_editors, $use_icon_for_editkey; + if (!isset($use_icon_for_editkey) || $use_icon_for_editkey==0) + return ""; // Derive theme path $theme_path = $path_to_root . '/themes/' . user_theme();