Sha256: 40b94241a4ebf9a67460b897ad315ca5c7a931c135b462d1bd7e9f75db7e621d
Contents?: true
Size: 921 Bytes
Versions: 6
Compression:
Stored size: 921 Bytes
Contents
#= require bootstrap-datepicker.min #= require bootstrap-select.min #= require bootstrap-switch.min # For turbolink $(document).on 'ready page:load', -> # Submit form when per_page select changing $('.table-pagination-per-page select').change () -> $(this).parents('form').submit() # Clear search $('.table-search-field .clear-search-btn').click () -> $(this).prev().val('') $(this).parents('form').submit() # Resize search field $('.table-panel input[type=search]').blur -> $parent = $(this).parent() $parent.removeClass('has-value') if $(this).val() == '' $parent.removeClass('is-focused') $('.table-panel input[type=search]').focus -> $(this).parent().addClass('is-focused has-value') $('.table-panel input[type=search]').each -> $(this).parent().addClass('has-value') if $(this).val() != '' $('.selectpicker').selectpicker() $('.switch').bootstrapSwitch()
Version data entries
6 entries across 6 versions & 1 rubygems