Sha256: 64609af67c9ceda33e40946c4d36e9e8f009459e26c580b6ecb0a03c6ab45507
Contents?: true
Size: 961 Bytes
Versions: 2
Compression:
Stored size: 961 Bytes
Contents
@UiBibzInterface = class Interface constructor: -> @nav() @tooltip() @dropdown() @checkbox() @popover() @notify() nav: -> $('.nav-tabs nav-link').tab('show') popover: -> $('[data-toggle="popover"]').popover({ html: true }) tooltip: -> #$('[data-toggle="tooltip"], [title]').tooltip() $('[data-toggle="tooltip"]').tooltip() dropdown: -> $('.dropdown-toggle').dropdown() 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)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ui_bibz-2.0.2 | app/assets/javascripts/interface.coffee |
ui_bibz-2.0.1 | app/assets/javascripts/interface.coffee |