fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [15324] booking: add time picker for season bounderie


From: sigurdne
Subject: [Fmsystem-commits] [15324] booking: add time picker for season bounderies
Date: Thu, 23 Jun 2016 12:22:45 +0000 (UTC)

Revision: 15324
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15324
Author:   sigurdne
Date:     2016-06-23 12:22:45 +0000 (Thu, 23 Jun 2016)
Log Message:
-----------
booking: add time picker for season bounderies

Modified Paths:
--------------
    trunk/booking/inc/class.uiseason.inc.php

Modified: trunk/booking/inc/class.uiseason.inc.php
===================================================================
--- trunk/booking/inc/class.uiseason.inc.php    2016-06-23 11:44:25 UTC (rev 
15323)
+++ trunk/booking/inc/class.uiseason.inc.php    2016-06-23 12:22:45 UTC (rev 
15324)
@@ -340,7 +340,18 @@
                        $active_tab = 'generic';
 
                        $season['tabs'] = 
phpgwapi_jquery::tabview_generate($tabs, $active_tab);
+                       //exclude the seconds
+                       if(isset($boundary['from_']))
+                       {
+                               $from_arr = explode(':',$boundary['from_']);
+                               $to_arr = explode(':',$boundary['to_']);
+                               $boundary['from_'] = 
"{$from_arr[0]}:{$from_arr[1]}";
+                               $boundary['to_'] = "{$to_arr[0]}:{$to_arr[1]}";
+                       }
 
+                       $GLOBALS['phpgw']->jqcal->add_listener('field_from', 
'time');
+                       $GLOBALS['phpgw']->jqcal->add_listener('field_to', 
'time');
+
                        self::render_template('season_boundaries', 
array('boundary' => $boundary, 'boundaries' => $boundaries,
                                'season' => $season));
                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]