Sha256: b7dabf4de6c00a148c6be6774f8672037af72a0b585705631c5de8433fa94280
Contents?: true
Size: 668 Bytes
Versions: 12
Compression:
Stored size: 668 Bytes
Contents
jQuery.fn.extend findCard: (id) -> @find("[data-card-id='" + id + "']") isMain: -> @slot().parent('#main')[0] cardMark: -> if @data('cardId') then "~#{@data('cardId')}" else @data("cardName") isMainOrMainModal: -> el = $(this) el = el.slotOrigin("modal") if el.closest(".modal")[0] el && el.isMain() notify: (message, status) -> slot = @slot(status) notice = slot.find '.card-notice' unless notice[0] notice = $('<div class="card-notice"></div>') form = slot.find('.card-form') if form[0] $(form[0]).append notice else slot.append notice notice.html message notice.show 'blind'
Version data entries
12 entries across 12 versions & 1 rubygems