mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Poll component supports mobile environment
- 설문조사 컴포넌트의 모바일 장치 지원 - 브라우저 자체 datepicker 를 지원하는 경우 jQuery datepicker 는 나타내지 않음 (중복 UI 정리) - 자체 datepicker 로 입력하는 경우에도 정상적으로 날짜 처리.
This commit is contained in:
parent
eef87175d4
commit
43b82c0e5f
5 changed files with 43 additions and 25 deletions
|
|
@ -19,7 +19,12 @@ class pollController extends poll
|
|||
*/
|
||||
function procPollInsert()
|
||||
{
|
||||
$stop_date = Context::get('stop_date');
|
||||
$stop_date = intval(Context::get('stop_date'));
|
||||
// mobile input date format can be different
|
||||
if($stop_date != Context::get('stop_date'))
|
||||
{
|
||||
$stop_date = date('Ymd', strtodate(Context::get('stop_date')));
|
||||
}
|
||||
if($stop_date < date('Ymd'))
|
||||
{
|
||||
$stop_date = date('YmdHis', $_SERVER['REQUEST_TIME']+60*60*24*30);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue