Option in config.php for using an icon for editkey after combobox.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 8 Jan 2012 22:29:30 +0000 (23:29 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 8 Jan 2012 22:29:30 +0000 (23:29 +0100)
config.default.php
includes/ui/ui_lists.inc

index 2cb027a8722cde3cba584e71fe2f23c28a2d6ef7..9bc4dae1e946d9f6cab4712dd73e0986233b5cd0 100644 (file)
@@ -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;
 
index d83a4703bc3bbea540a966230f086413135b8aba..91722536b7931b3aab1c842d41f7df768bb0f215 100644 (file)
@@ -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();