Switch weekend action in toolbar with week view, as week view is more important than weekend toggle

This commit is contained in:
Hadi Nategh 2016-04-26 12:35:09 +00:00
parent 4ec2674367
commit 171a160383

View File

@ -392,7 +392,7 @@ class calendar_uiviews extends calendar_ui
{ {
foreach (array_keys($actions) as $key) foreach (array_keys($actions) as $key)
{ {
if (!in_array($key, array('day_view','weekend','next', 'today','previous'))) { if (!in_array($key, array('day_view','week_view','next', 'today','previous'))) {
$actions[$key]['toolbarDefault'] = false; $actions[$key]['toolbarDefault'] = false;
} }
else { else {