Add missing placeholder (no rows) action

This commit is contained in:
Nathan Gray 2016-04-26 23:11:29 +00:00
parent b3f4b60ccf
commit e88c3da6b8
3 changed files with 4 additions and 1 deletions

View File

@ -137,7 +137,8 @@ class calendar_uilist extends calendar_ui
'filter_onchange' => "app.calendar.filter_change",
'row_id' => 'row_id', // set in get rows "$event[id]:$event[recur_date]"
'row_modified' => 'modified',
'favorites' => true
'favorites' => true,
'placeholder_actions' => array('add')
);
}
$content['nm']['actions'] = $this->get_actions();

View File

@ -142,6 +142,7 @@ class resources_ui
$content['nm']['filter2'] = (int)$_GET['view_accs_of'];
}
$content['nm']['actions'] = $this->get_actions();
$content['nm']['placeholder_actions'] = array('add');
// check if user is permitted to add resources
// If they can't read any categories, they won't be able to save it

View File

@ -900,6 +900,7 @@ class timesheet_ui extends timesheet_bo
//'actions' => $this->get_actions(),
'default_cols' => '!legacy_actions', // switch legacy actions column and row off by default
'pm_integration' => $this->pm_integration,
'placeholder_actions' => array('add')
);
}
$content['nm']['actions'] = $this->get_actions($content['nm']);