Sha256: 30e9bee3376d708c0772f1b6aaf2c0b8808a26e52028b2aa3b62d45df00daa3b
Contents?: true
Size: 980 Bytes
Versions: 2
Compression:
Stored size: 980 Bytes
Contents
#= require jquery #= require jquery_ujs #= require popper #= require bootstrap-datepicker-1.8.0 #= require bootstrap-datepicker-1.8.0.ru.min #= require font_awesome5 #= require clipboard #= require_tree . window.i18n_locale = (locale) -> switch locale when 'en' then { date_format: 'yyyy-mm-dd', locale: locale } when 'ru' then { date_format: 'dd.mm.yyyy', locale: locale } $(document).ready -> unless window.current_locale console.log 'You should set `window.current_locale` before all Javascript code' unless $('.date_picker').length == 0 $('.date_picker').datepicker({ format: window.current_locale.date_format, language: window.current_locale.locale }) $('.link').click -> href = $(this).data('href') if href location.href = href else anchor = $(this).data('anchor') unless $(anchor).offset() == undefined $(window).scrollTop $(anchor).offset().top clipboard = new Clipboard '.clipboard-btn'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tramway-core-1.16.1.1 | app/assets/javascripts/tramway/core/application.js.coffee |
tramway-core-1.16.1 | app/assets/javascripts/tramway/core/application.js.coffee |