Calendar - if editing event without popup, cancel loads normal calendar UI instead of doing nothing.

This commit is contained in:
nathangray 2017-07-26 09:45:48 -06:00
parent f600436898
commit 2d9c6c3ae9

View File

@ -1845,7 +1845,8 @@ class calendar_uiforms extends calendar_ui
} }
if ($preserved['no_popup']) if ($preserved['no_popup'])
{ {
$etpl->set_cell_attribute('button[cancel]','onclick',''); // If not a popup, load the normal calendar interface on cancel
$etpl->set_cell_attribute('button[cancel]','onclick','app.calendar.linkHandler(\'index.php?menuaction=calendar.calendar_uiviews.index\')');
} }
// Allow admins to restore deleted events // Allow admins to restore deleted events