Sha256: 053c79b4cbe4d7d01aeb203c6cce645e1516a3c51d34bf9f90a6e7efefbcfa6b
Contents?: true
Size: 864 Bytes
Versions: 58
Compression:
Stored size: 864 Bytes
Contents
decko.slotReady(function(slot) { slot.find('.modal.fade').on('loaded.bs.modal', function(e) { $(this).trigger('slotReady'); }); slot.find('[data-toggle=\'modal\']').off("click").on('click', function(e) { var $_this, href, modal_selector; e.preventDefault(); e.stopPropagation(); $_this = $(this); href = $_this.attr('href'); modal_selector = $_this.data('target'); $(modal_selector).modal('show'); $.ajax({ url: href, type: 'GET', success: function(html) { $(modal_selector + ' .modal-content').html(html); return $(modal_selector).trigger('loaded.bs.modal'); }, error: function(jqXHR, textStatus) { $(modal_selector + ' .modal-content').html(jqXHR.responseText); return $(modal_selector).trigger('loaded.bs.modal'); } }); return false; }); });
Version data entries
58 entries across 58 versions & 2 rubygems