fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14106] modify class phpgwapi_jqcal


From: Saul
Subject: [Fmsystem-commits] [14106] modify class phpgwapi_jqcal
Date: Fri, 02 Oct 2015 23:10:18 +0000

Revision: 14106
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14106
Author:   psaul
Date:     2015-10-02 23:10:17 +0000 (Fri, 02 Oct 2015)
Log Message:
-----------
modify class phpgwapi_jqcal

Modified Paths:
--------------
    branches/dev-syncromind/phpgwapi/inc/class.jqcal.inc.php

Modified: branches/dev-syncromind/phpgwapi/inc/class.jqcal.inc.php
===================================================================
--- branches/dev-syncromind/phpgwapi/inc/class.jqcal.inc.php    2015-10-02 
23:07:12 UTC (rev 14105)
+++ branches/dev-syncromind/phpgwapi/inc/class.jqcal.inc.php    2015-10-02 
23:10:17 UTC (rev 14106)
@@ -71,22 +71,45 @@
                */
                function _input_modern($id, $type)
                {
-                       $js = <<<JS
+                    $js = <<<JS
                        $(function() {
-                               $( "#{$id}" ).{$type}picker({ 
-                                       dateFormat: '{$this->dateformat}',
-                                       showWeek: true,
-                                       changeMonth: true,
-                                       changeYear: true,
-                                       showOn: "button",
-                                       showButtonPanel:true,
-                                       buttonImage: "{$this->img_cal}",
-                                       buttonText: "{$this->lang_select_date}",
-                                       buttonImageOnly: true
-                               });
+                            $( "#{$id}" ).{$type}picker({ 
+                                dateFormat: '{$this->dateformat}',
+                                showWeek: true,
+                                changeMonth: true,
+                                changeYear: true,
+                                showOn: "button",
+                                showButtonPanel:true,
+                                buttonImage: "{$this->img_cal}",
+                                buttonText: "{$this->lang_select_date}",
+                                buttonImageOnly: true,
+                                altField: "#alt_{$id}",
+                                altFormat: "yy-mm-dd",
+                                altFieldTimeOnly: false
+                            });
                            $('#ui-datepicker-div').draggable();
+                                $('#date_format').val('{$this->dateformat}');
+                            $.each($('.newaddedpicker'), function(i, v){
+                                var id = v.id;
+                                v.classList.remove('newaddedpicker');
+                                $( "#"+id ).{$type}picker({
+                                    dateFormat: '{$this->dateformat}',
+                                    showWeek: true,
+                                    changeMonth: true,
+                                    changeYear: true,
+                                    showOn: "button",
+                                    showButtonPanel:true,
+                                    buttonImage: "{$this->img_cal}",
+                                    buttonText: "{$this->lang_select_date}",
+                                    buttonImageOnly: true,
+                                    altField: "#alt_"+id,
+                                    altFormat: "yy-mm-dd",
+                                    altFieldTimeOnly: false
+                                });
+                            });
                        });
 JS;
+
                        $GLOBALS['phpgw']->js->add_code('', $js);
                }
        }




reply via email to

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