fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15327] booking: copy start date to end date in appli


From: sigurdne
Subject: [Fmsystem-commits] [15327] booking: copy start date to end date in application form
Date: Thu, 23 Jun 2016 15:05:03 +0000 (UTC)

Revision: 15327
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15327
Author:   sigurdne
Date:     2016-06-23 15:05:01 +0000 (Thu, 23 Jun 2016)
Log Message:
-----------
booking: copy start date to end date in application form

Modified Paths:
--------------
    trunk/booking/inc/class.uicommon.inc.php
    trunk/booking/js/booking/application.js
    trunk/bookingfrontend/js/bookingfrontend/application.js

Modified: trunk/booking/inc/class.uicommon.inc.php
===================================================================
--- trunk/booking/inc/class.uicommon.inc.php    2016-06-23 13:50:36 UTC (rev 
15326)
+++ trunk/booking/inc/class.uicommon.inc.php    2016-06-23 15:05:01 UTC (rev 
15327)
@@ -780,28 +780,28 @@
                        $js = <<<JS
 
                        $(function() {
-                                
-                                $.each($('.newaddedpicker'), function(i, v){
-                                var id = v.id;
-                                v.classList.remove('newaddedpicker');
-                                $( "#"+id ).{$type}picker({
-                                    dateFormat: '{$dateformat}',
-                                    showWeek: true,
-                                    changeMonth: true,
-                                    changeYear: true,
-                                    showOn: "button",
-                                    showButtonPanel:true,
-                                    buttonImage: "{$img_cal}",
-                                    buttonText: "{$lang_select_date}",
-                                    buttonImageOnly: true
-                                });
-                            });
 
+                                       $.each($('.newaddedpicker'), 
function(i, v){
+                                       var id = v.id;
+                                       v.classList.remove('newaddedpicker');
+                                       $( "#"+id ).{$type}picker({
+                                               dateFormat: '{$dateformat}',
+                                               showWeek: true,
+                                               changeMonth: true,
+                                               changeYear: true,
+                                               showOn: "button",
+                                               showButtonPanel:true,
+                                               buttonImage: "{$img_cal}",
+                                               buttonText: 
"{$lang_select_date}",
+                                               buttonImageOnly: true
+                                       });
+                               });
+
                                $('#add-date-link').click(function(){
                                        var add = $(this);
                                        var html = '';
                                     
-                                        this.counter = 
$('.date-container').length - 1;
+                                       this.counter = 
$('.date-container').length - 1;
 
                                        if (!this.counter) { this.counter = 0; }
                                     

Modified: trunk/booking/js/booking/application.js
===================================================================
--- trunk/booking/js/booking/application.js     2016-06-23 13:50:36 UTC (rev 
15326)
+++ trunk/booking/js/booking/application.js     2016-06-23 15:05:01 UTC (rev 
15327)
@@ -3,6 +3,12 @@
 
 $(document).ready(function ()
 {
+       $("#start_date").change(function ()
+       {
+               $("#end_date").val($("#start_date").val());
+       });
+
+
        
JqueryPortico.autocompleteHelper('bookingfrontend/?menuaction=bookingfrontend.uibuilding.index&phpgw_return_as=json&',
                'field_building_name', 'field_building_id', 
'building_container');
 

Modified: trunk/bookingfrontend/js/bookingfrontend/application.js
===================================================================
--- trunk/bookingfrontend/js/bookingfrontend/application.js     2016-06-23 
13:50:36 UTC (rev 15326)
+++ trunk/bookingfrontend/js/bookingfrontend/application.js     2016-06-23 
15:05:01 UTC (rev 15327)
@@ -3,6 +3,11 @@
 
 $(document).ready(function ()
 {
+       $("#start_date").change(function ()
+       {
+               $("#end_date").val($("#start_date").val());
+       });
+
        JqueryPortico.autocompleteHelper(phpGWLink('bookingfrontend/', 
{menuaction: 'bookingfrontend.uibuilding.index'}, true), 'field_building_name', 
'field_building_id', 'building_container');
 
        $("#field_activity").change(function ()




reply via email to

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