[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [14089] modify adddatetimepicker()
From: |
Saul |
Subject: |
[Fmsystem-commits] [14089] modify adddatetimepicker() |
Date: |
Fri, 02 Oct 2015 00:17:47 +0000 |
Revision: 14089
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14089
Author: psaul
Date: 2015-10-02 00:17:46 +0000 (Fri, 02 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-02
00:16:11 UTC (rev 14088)
+++ branches/dev-syncromind/booking/inc/class.uicommon.inc.php 2015-10-02
00:17:46 UTC (rev 14089)
@@ -758,32 +758,70 @@
'<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="time
pure-input-2-3" id="start_date_'+this.counter+'" name="from_[]" type="text">'+
+ '<input
id="alt_start_date_'+this.counter+'" name="from_[]" type="hidden">'+
'</input>'+
+ '<input
class="new_datepicker time pure-input-2-3" id="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="time
pure-input-2-3" id="end_date_'+this.counter+'" name="to_[]" type="text">'+
+ '<input
id="alt_end_date_'+this.counter+'" name="from_[]" type="hidden">'+
'</input>'+
+ '<input
class="new_datepicker time pure-input-2-3" id="end_date_'+this.counter+'"
type="text">'+
+ '</input>'+
'</div>'
'</div>';
- this.counter++;
+
add.parent().parent().children('#dates-container').append(html);
+
+//
console.log($('#start_date_'+this.counter));
+// console.log($(
".time" ));
+
+
$('#start_date_'+this.counter).{$_type}picker({
+ dateFormat: '{$dateformat}',
+ showWeek: true,
+ changeMonth: true,
+ changeYear: true,
+ showOn: "button",
+ showButtonPanel:true,
+ buttonImage: "{$img_cal}",
+ buttonText: "{$lang_select_date}",
+ buttonImageOnly: true,
+ altField:
"#alt_start_date_"+this.counter,
+ altFormat: "yy-mm-dd",
+ altFieldTimeOnly: false
+ });
+
+
$('#end_date_'+this.counter).{$_type}picker({
+ dateFormat: '{$dateformat}',
+ showWeek: true,
+ changeMonth: true,
+ changeYear: true,
+ showOn: "button",
+ showButtonPanel:true,
+ buttonImage: "{$img_cal}",
+ buttonText: "{$lang_select_date}",
+ buttonImageOnly: true,
+ altField:
"#alt_end_date_"+this.counter,
+ altFormat: "yy-mm-dd",
+ altFieldTimeOnly: false
+ });
+
- $( ".time" ).{$_type}picker({
- dateFormat: '{$dateformat}',
- showWeek: true,
- changeMonth: true,
- changeYear: true,
- showOn: "button",
- showButtonPanel:true,
- buttonImage:
"{$img_cal}",
- buttonText:
"{$lang_select_date}",
- buttonImageOnly: true
- });
-
+// $( ".time" ).{$_type}picker({
+// dateFormat: '{$dateformat}',
+// showWeek: true,
+// changeMonth: true,
+// changeYear: true,
+// showOn: "button",
+// showButtonPanel:true,
+// buttonImage:
"{$img_cal}",
+// buttonText:
"{$lang_select_date}",
+// buttonImageOnly: true
+// });
+ this.counter++;
});
});
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [14089] modify adddatetimepicker(),
Saul <=