Set placeholder action to 'new' (instead of default add) to avoid copy & sub when there's no entries shown

This commit is contained in:
Nathan Gray 2013-10-01 07:46:24 +00:00
parent 52d339305e
commit 95721656c1

View File

@ -813,6 +813,9 @@ class infolog_ui
//apply infolog_filter2_change javascript method (show/hide details each rows) over onchange filter2 //apply infolog_filter2_change javascript method (show/hide details each rows) over onchange filter2
$values['nm']['filter2_onchange'] = "app.infolog.filter2_change();"; $values['nm']['filter2_onchange'] = "app.infolog.filter2_change();";
// Allow add actions even when there's no rows
$values['nm']['placeholder_actions'] = array('new');
// disable columns for main entry as set in the pref for details or no details // disable columns for main entry as set in the pref for details or no details
if ($action == 'sp') if ($action == 'sp')