diff options
Diffstat (limited to 'app/php/controls/CalendarScaffold.php')
-rw-r--r-- | app/php/controls/CalendarScaffold.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/php/controls/CalendarScaffold.php b/app/php/controls/CalendarScaffold.php index b12f6aa..1a25cce 100644 --- a/app/php/controls/CalendarScaffold.php +++ b/app/php/controls/CalendarScaffold.php @@ -96,6 +96,15 @@ class CalendarScaffold extends FacadeTemplateControl { $this->_rebindData(); } + public function toggleDefaultState($sender, $param) { + $calendar = $this->getFacade()->get($sender->CustomData); + if ($calendar) { + $calendar[0]->Visible = $sender->Checked; + $calendar[0]->save(); + $this->_rebindData(TRUE); + } + } + public function uploadRowFile($sender, $param) { $fileType = $sender->getFileType(); if (preg_match('/^image\//', $fileType)) { |