Sha256: f4226b0720df242efbbed5cb1555b07236ba2de21c8d62d98081d0b3008f66a2

Contents?: true

Size: 745 Bytes

Versions: 5

Compression:

Stored size: 745 Bytes

Contents

$(function() {
  $('.select2').select2();

  // Table Row as links
  $('.table-hover tr[data-url]').on('click', function() {
    window.location.href = $(this).attr('data-url');
  });

  window.startAnimateProgress = function(message) {
    $('.content-body').prepend("<div class='alert-box'></div>");
    $('.content-body .alert-box').Loadingdotdotdot({
      "word": message
    }).addClass('info');
  };

  window.stopAnimateProgress = function() {
    $('.alert-box').Loadingdotdotdot("Stop");
  };

  // Modal Cancel buttons
  $("a.modal-cancel").click(function(e) {
    e.preventDefault();
    $('a.close-reveal-modal').trigger('click');
  });
});

String.prototype.repeat = function( num )
{
  return new Array( num + 1 ).join( this );
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
express_admin-1.4.1 app/assets/javascripts/express_admin/admin.js
express_admin-1.4.0 app/assets/javascripts/express_admin/admin.js
express_admin-1.3.2 app/assets/javascripts/express_admin/admin.js
express_admin-1.3.1 app/assets/javascripts/express_admin/admin.js
express_admin-1.3.0 app/assets/javascripts/express_admin/admin.js