Sha256: 18f8f10decbdb1b0df7e36b180fa6d66c66dafcf796be84f69f4f5f22c1d3c35
Contents?: true
Size: 1.28 KB
Versions: 6
Compression:
Stored size: 1.28 KB
Contents
@UiBibzInterface = class Interface constructor: -> @nav() @tooltip() @dropdown() @checkbox() @popover() @notify() @fileInputBrowser() @toast() @collapse() nav: -> #$('.nav-tabs .nav-item .nav-link').tab('show') fileInputBrowser: -> bsCustomFileInput.init() popover: -> $('[data-toggle="popover"]').popover() tooltip: -> #$('[data-toggle="tooltip"], [title]').tooltip() $('[data-toggle="tooltip"]').tooltip() dropdown: -> $('.dropdown-toggle').dropdown() # $('.dropdown-toggle').on 'click', -> # $(this).next().toggle() # $('.dropdown-menu.keep-open').on 'click', (e) -> # e.stopPropagation() notify: -> $('.alert').each -> timeoutValue = $(this).data('timeout') if timeoutValue? me = $(this) setTimeout -> me.addClass('fade') , timeoutValue checkbox: -> $('.abc-checkbox.indeterminate input[type=checkbox]').on 'click', -> el = $(this) if (el.attr('readonly') == 'readonly') el.prop('checked', false) el.prop('readonly', false) else if (!el.is(':checked')) el.prop('readonly', true) el.prop('indeterminate', true) toast: -> $('.toast').toast() collapse: -> $('.collapse').collapse()
Version data entries
6 entries across 6 versions & 1 rubygems