Sha256: be80b332d02143ec63a15375c3492d33b5e61df3887707d68e318471467d6632

Contents?: true

Size: 717 Bytes

Versions: 2

Compression:

Stored size: 717 Bytes

Contents

$(function() {
  // 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

2 entries across 2 versions & 1 rubygems

Version Path
express_admin-1.2.1 app/assets/javascripts/express_admin/admin.js
express_admin-1.2.0 app/assets/javascripts/express_admin/admin.js