Plugin Directory

Changeset 1943984


Ignore:
Timestamp:
09/19/2018 11:47:25 PM (8 years ago)
Author:
martindrapeau
Message:

Calendar: sort locations in alphabetical order

Location:
amilia-store/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • amilia-store/trunk/amilia-store-calendar.php

    r1943949 r1943984  
    157157                    }
    158158                }
     159                resources.sort(function(a,b) {
     160                    var _a = a.title.toLowerCase();
     161                    var _b = b.title.toLowerCase();
     162                    if (_a == _b) return 0;
     163                    if (_a > _b) return 1;
     164                    return -1;
     165                });
    159166                if (showFacilitiesFilter) {
    160167                    facilitiesSelect.selectize({
     
    194201                defaultView: '$view',
    195202                defaultDate: '$date',
    196                 minTime: '$time',
     203                scrollTime: '$time',
    197204                events: function(start, end, timezone, callback) {
    198205                    var url = eventsUrl + '?start=' + start.format('YYYY-MM-DD') + '&end=' + end.format('YYYY-MM-DD') + (showHidden ? '&showHidden=true' : '');
  • amilia-store/trunk/amilia-store.php

    r1943949 r1943984  
    66Author: Martin Drapeau <martin.drapeau@amilia.com>
    77Copyright: 2014-2018 Amilia
    8 Version: 2.6.5
     8Version: 2.6.6
    99Author URI: http://www.amilia.com/
    1010License: Apache License 2.0
Note: See TracChangeset for help on using the changeset viewer.