fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14206] modify adddatetimepicker()


From: Saul
Subject: [Fmsystem-commits] [14206] modify adddatetimepicker()
Date: Tue, 20 Oct 2015 00:04:18 +0000

Revision: 14206
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14206
Author:   psaul
Date:     2015-10-20 00:04:17 +0000 (Tue, 20 Oct 2015)
Log Message:
-----------
modify adddatetimepicker()

Modified Paths:
--------------
    branches/dev-syncromind/booking/inc/class.uicommon.inc.php

Modified: branches/dev-syncromind/booking/inc/class.uicommon.inc.php
===================================================================
--- branches/dev-syncromind/booking/inc/class.uicommon.inc.php  2015-10-19 
10:41:38 UTC (rev 14205)
+++ branches/dev-syncromind/booking/inc/class.uicommon.inc.php  2015-10-20 
00:04:17 UTC (rev 14206)
@@ -117,7 +117,7 @@
                {
                        $date = $date[0]->nodeValue;
                }
-               preg_match('/([0-9]{4})-([0-9]{2})-([0-9]{2})( 
([0-9]{2}):([0-9]{2}))?/', $date, $match);
+               preg_match('/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})( 
([0-9]{2}):([0-9]{2}))?/', $date, $match);
 
                $dateformat = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'];
                if($match[4]) 
@@ -760,29 +760,28 @@
                                     showButtonPanel:true,
                                     buttonImage: "{$img_cal}",
                                     buttonText: "{$lang_select_date}",
-                                    buttonImageOnly: true,
-                                    altField: "#alt_"+id,
-                                    altFormat: "yy-mm-dd",
-                                    altFieldTimeOnly: false
+                                    buttonImageOnly: true
                                 });
                             });
 
                                $('#add-date-link').click(function(){
                                        var add = $(this);
                                        var html = '';
+                                    
+                                        this.counter = 
$('.date-container').length - 1;
 
                                        if (!this.counter) { this.counter = 0; }
 
                                        html = '<div class="date-container">'+
                                                '<a class="close-btn btnclose" 
href="javascript:void(0);">-</a>'+
                                                '<div 
class="pure-control-group">'+
-                                                       '<label 
for="start_date_'+this.counter+'"><h4>{$lang_from}</h4></label>'+
-                                                       '<input 
class="new_datepicker time pure-input-2-3" name="from_[]" 
id="start_date_'+this.counter+'" type="text">'+
+                                                       '<label 
for="new_start_date_'+this.counter+'"><h4>{$lang_from}</h4></label>'+
+                                                       '<input 
class="new_datepicker time pure-input-2-3" name="from_[]" 
id="new_start_date_'+this.counter+'" type="text">'+
                                                        '</input>'+
                                                '</div>'+
                                                '<div 
class="pure-control-group">'+
-                                                       '<label 
for="end_date_'+this.counter+'" ><h4>{$lang_to}</h4></label>'+
-                                                       '<input 
class="new_datepicker time pure-input-2-3" name="to_[]" 
id="end_date_'+this.counter+'" type="text">'+
+                                                       '<label 
for="new_end_date_'+this.counter+'" ><h4>{$lang_to}</h4></label>'+
+                                                       '<input 
class="new_datepicker time pure-input-2-3" name="to_[]" 
id="new_end_date_'+this.counter+'" type="text">'+
                                                        '</input>'+
                                                '</div>'
                                        '</div>';




reply via email to

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