CC-3239: Create show form->Date start doesnt consider "Week starts on" parameter
Fixed
This commit is contained in:
parent
561b508162
commit
4a372715a3
|
@ -67,6 +67,8 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
$user = new Application_Model_User($userInfo->id);
|
$user = new Application_Model_User($userInfo->id);
|
||||||
$this->view->isAdmin = $user->isAdmin();
|
$this->view->isAdmin = $user->isAdmin();
|
||||||
$this->view->isProgramManager = $user->isUserType('P');
|
$this->view->isProgramManager = $user->isUserType('P');
|
||||||
|
|
||||||
|
$this->view->headScript()->appendScript("var weekStart = ".Application_Model_Preference::GetWeekStartDay().";");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function eventFeedAction()
|
public function eventFeedAction()
|
||||||
|
|
|
@ -33,7 +33,8 @@ function createDateInput(el, onSelect) {
|
||||||
onSelect: onSelect,
|
onSelect: onSelect,
|
||||||
dateFormat: 'yy-mm-dd',
|
dateFormat: 'yy-mm-dd',
|
||||||
closeText: 'Close',
|
closeText: 'Close',
|
||||||
showButtonPanel: true
|
showButtonPanel: true,
|
||||||
|
firstDay: weekStart
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,7 +191,8 @@ function setAddShowEvents() {
|
||||||
minDate: adjustDateToServerDate(new Date(), timezoneOffset),
|
minDate: adjustDateToServerDate(new Date(), timezoneOffset),
|
||||||
dateFormat: 'yy-mm-dd',
|
dateFormat: 'yy-mm-dd',
|
||||||
closeText: 'Close',
|
closeText: 'Close',
|
||||||
showButtonPanel: true
|
showButtonPanel: true,
|
||||||
|
firstDay: weekStart
|
||||||
});
|
});
|
||||||
form.find('input[name^="add_show_rebroadcast_time"]').timepicker({
|
form.find('input[name^="add_show_rebroadcast_time"]').timepicker({
|
||||||
amPmText: ['', ''],
|
amPmText: ['', ''],
|
||||||
|
|
Loading…
Reference in New Issue