Sha256: 3072764526e68c9c763734f818afe1ffe2fca0539e6fbcbb2b11d2d679908d19

Contents?: true

Size: 1.2 KB

Versions: 8

Compression:

Stored size: 1.2 KB

Contents

if (typeof(Alchemy) === 'undefined') {
  var Alchemy = {};
}

(function ($) {

  $.extend(Alchemy, {

    Datepicker:function (selector) {
      var datepicker_options = {
        dateFormat:'yy-mm-dd',
        changeMonth:true,
        changeYear:true,
        showWeek:true,
        showButtonPanel:true,
        showOtherMonths:true
      };
      if (typeof(selector) === 'undefined') {
        var selector = 'input[type="date"], input.date'
      }
      if (Alchemy.locale === 'de') {
        $.extend(datepicker_options, {
          dateFormat:'dd.mm.yy',
          dayNames:['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'],
          dayNamesMin:['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
          monthNames:['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'],
          monthNamesShort:['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
          closeText:'Ok',
          currentText:'Heute',
          weekHeader:'KW',
          nextText:'nächster',
          prevText:'vorheriger'
        });
      }
      $(selector).datepicker(datepicker_options);
    }

  });

})(jQuery);

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-2.2.rc13 app/assets/javascripts/alchemy/alchemy.datepicker.js
alchemy_cms-2.2.rc11 app/assets/javascripts/alchemy/alchemy.datepicker.js
alchemy_cms-2.2.rc8 app/assets/javascripts/alchemy/alchemy.datepicker.js
alchemy_cms-2.2.rc7 app/assets/javascripts/alchemy/alchemy.datepicker.js
alchemy_cms-2.2.rc6 app/assets/javascripts/alchemy/alchemy.datepicker.js
alchemy_cms-2.2.rc3 app/assets/javascripts/alchemy/alchemy.datepicker.js
alchemy_cms-2.2.rc2 app/assets/javascripts/alchemy/alchemy.datepicker.js
alchemy_cms-2.2.rc1 app/assets/javascripts/alchemy/alchemy.datepicker.js