Sha256: 8bc11ce805c7b9e75dfbc9ea5e430eb8875b1360d07fd7e2630c22e8960d1a75

Contents?: true

Size: 1.52 KB

Versions: 13

Compression:

Stored size: 1.52 KB

Contents

$(document).on 'turbolinks:load', ->

  toggleMenu = ->
    $slice = $('#sidebar-footer .brand')
    $slice.toggleClass 'hidden'

  $('.sidebar-toggle').click ->
    toggleMenu()

  searchButton = ->
    $('.search-button').click ->
      # if $(window).width() < 992
      if $(this).hasClass ('submit')
        $('#search form').submit()
      $('#search')
        .removeClass 'hidding-search'
        .addClass 'display-search'
      if $(window).width() < 992
        $('.navbar-custom-menu').addClass 'translate'
      $('.hide-search').addClass 'appear'
      $('.search-bar').focus()
      $(this).addClass 'submit'
      # else
      #   $('#search form').submit()


    $('.hide-search').click ->
      $('#search')
        .removeClass 'display-search'
        .addClass 'hidding-search'
      $('.navbar-custom-menu').removeClass 'translate'
      $('.hide-search').removeClass 'appear'
      $('.search-button').removeClass 'submit'

  $('.datepicker').datepicker({
    dateFormat: 'yy-mm-dd', # formato obligatorio para Keppler
    showOtherMonths: true,
    selectOtherMonths: true,
    changeMonth: true,
    changeYear: true

    # Ver documentación en https://jqueryui.com/datepicker
  })

  $('.close-index-show').click ->
    $('.index-show').css 'right', -$('.index-show').outerWidth()

  $('#open-historial').click ->
    $('.listing-show .control-sidebar').toggleClass 'control-sidebar-open'
  
  searchButton()
  return

$(document).ready ->
  $('.spinner').css 'display', 'block'

$(window).load ->
  $('.spinner').fadeOut 500

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
keppler-2.1.11 installer/core/app/assets/javascripts/admin/main.coffee
keppler-2.1.10 installer/core/app/assets/javascripts/admin/main.coffee
keppler-2.1.9 installer/core/app/assets/javascripts/admin/main.coffee
keppler-2.1.8 installer/core/app/assets/javascripts/admin/main.coffee
keppler-2.1.7 installer/core/app/assets/javascripts/admin/main.coffee
keppler-2.1.6 installer/core/app/assets/javascripts/admin/main.coffee
keppler-2.1.5 installer/core/app/assets/javascripts/admin/main.coffee
keppler-2.1.4 installer/core/app/assets/javascripts/admin/main.coffee
keppler-2.1.3 installer/core/app/assets/javascripts/admin/main.coffee
keppler-2.1.2 installer/core/app/assets/javascripts/admin/main.coffee
keppler-2.1.1 installer/core/app/assets/javascripts/admin/main.coffee
keppler-2.1.pre.p1 installer/core/app/assets/javascripts/admin/main.coffee
keppler-2.1 installer/core/app/assets/javascripts/admin/main.coffee