fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14179] modify class phpgwapi_jqcal


From: Saul
Subject: [Fmsystem-commits] [14179] modify class phpgwapi_jqcal
Date: Fri, 16 Oct 2015 00:02:58 +0000

Revision: 14179
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14179
Author:   psaul
Date:     2015-10-16 00:02:57 +0000 (Fri, 16 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-15 
15:56:32 UTC (rev 14178)
+++ branches/dev-syncromind/phpgwapi/inc/class.jqcal.inc.php    2015-10-16 
00:02:57 UTC (rev 14179)
@@ -71,45 +71,22 @@
                */
                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,
-                                altField: "#alt_{$id}",
-                                altFormat: "yy-mm-dd",
-                                altFieldTimeOnly: false
-                            });
+                               $( "#{$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
+                               });
                            $('#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]