Plugin Directory

Changeset 2240564


Ignore:
Timestamp:
02/07/2020 03:49:23 PM (6 years ago)
Author:
avisverifies
Message:

New version 2.1.7 - Fix datepicker bo

Location:
netreviews/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • netreviews/trunk/changelog.txt

    r2240360 r2240564  
    1 Version: 2.1.6  / 07/02/2020
     1Version: 2.1.7  / 07/02/2020
     2- Fix js datepicker back-office
     3
     4Version: 2.1.6  / 27/01/2020
    25- The module has been lightened
    36- Sprite css (BO only)
    4 
    57Version: 2.1.5  / 16/12/2019
    68-Tag API responses to avoid errors when debug mode activated
  • netreviews/trunk/functions.php

    r2240360 r2240564  
    55function ntav_update_version_plugin()
    66{
    7     ntav_updateValue('MODVERSION', '2.1.6');
     7    ntav_updateValue('MODVERSION', '2.1.7');
    88}
    99
  • netreviews/trunk/includes/js/av_backoffice.js

    r2218703 r2240564  
    1414            showOtherMonths: true,
    1515            selectOtherMonths: true,
    16             //showButtonPanel: true,
    1716            changeMonth: true,
    1817            changeYear: true,
    19             //showOn: "button",
    20             //buttonImage: "images/calendar.gif",
    21             //buttonImageOnly: true,
    22             //buttonText: "Select date",
    2318            minDate: "-1Y",
    2419            maxDate: 0,
    2520            onSelect: function(dateText) {
     21                var locale = $('#locale_for_datepicker').val();
     22                var locale_to_consider = (locale.split('_'))[0];
     23                var dateFormat = $.datepicker.regional[locale_to_consider].dateFormat;
    2624                if(this.id == 'from_datepicker'){
    27                     start = this.value;
     25                    try {
     26                        start = $.datepicker.parseDate( dateFormat, this.value );
     27                    } catch( error ) {
     28                        start = null;
     29                    }
    2830                }
    2931                if(this.id == 'to_datepicker'){
    30                     end = this.value;
     32                    try {
     33                        end = $.datepicker.parseDate( dateFormat, this.value );
     34                    } catch( error ) {
     35                        end = null;
     36                    }
    3137                }
    3238                if(start > end){
     
    3844        });
    3945    });
    40 
    4146})(jQuery);
    4247
Note: See TracChangeset for help on using the changeset viewer.