Sha256: fb7f22c3c58b6180c33e08fbf0236930d9f731d98a066771b7107e0c0c7e92f4
Contents?: true
Size: 630 Bytes
Versions: 18
Compression:
Stored size: 630 Bytes
Contents
$ -> initializePopover = (element) -> url = $(element).data('url') jqxhr = $.get(url, (data) => createPopover(element, data) return ).done(-> return ).fail(-> return ).always(-> return ) createPopover = (element, data) -> popover = $(element).popover sanitize: false content: data html: true trigger: 'click' return initializePopover('#cmor-contact-whatsapp-popover-button') $(document).on 'keypress', 'textarea', (e) -> if e.which == 13 and !e.shiftKey $(this).closest('form').submit() e.preventDefault() return
Version data entries
18 entries across 18 versions & 1 rubygems