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

Version Path
card-1.94.0 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.13 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.12 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.11 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.10 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.9 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.8 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.7 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.6 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.5 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.4 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.3 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.2 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.1 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.93.0 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.92.2 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.92.1 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.92 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js