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-mod-bootstrap-0.13.4 assets/script/bootstrap_modal_decko.js
card-mod-bootstrap-0.13.3 assets/script/bootstrap_modal_decko.js
card-mod-bootstrap-0.13.2 assets/script/bootstrap_modal_decko.js
card-mod-bootstrap-0.11.7 lib/javascript/bootstrap_modal_decko.js
card-mod-bootstrap-0.12.0 lib/javascript/bootstrap_modal_decko.js
card-mod-bootstrap-0.11.6 lib/javascript/bootstrap_modal_decko.js
card-mod-bootstrap-0.11.5 lib/javascript/bootstrap_modal_decko.js
card-mod-bootstrap-0.11.4 lib/javascript/bootstrap_modal_decko.js
card-mod-bootstrap-0.11.3 lib/javascript/bootstrap_modal_decko.js
card-mod-bootstrap-0.11.2 lib/javascript/bootstrap_modal_decko.js
card-mod-bootstrap-0.11.1 lib/javascript/bootstrap_modal_decko.js
card-mod-bootstrap-0.11.0 lib/javascript/bootstrap_modal_decko.js
card-1.100.0 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.99.6 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.99.5 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.99.4 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.99.3 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.99.2 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.99.1 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js
card-1.99.0 mod/bootstrap/lib/javascript/bootstrap_modal_wagn.js