Sha256: 67a34406276a7cc7b2bd44d46d5b84ed44add3f9dd2394faccae9e833c89c9e5

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

$(document).ready(function () {
  $('form.undo-item').submit(function () {
    asyncDeleteForm($(this), {
      type: "POST",
      success: function (msg) {
        humanMsg.displayMsg( msg.message );
      },
      error: function (XMLHttpRequest, textStatus, errorThrown) {
        humanMsg.displayMsg( 'Could not undo action' );
      }
    });

    // Assume success and remove item
    $(this).parent('td').parent('tr').remove();
    restripe();
    return false;
  });
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enki-engine-0.0.5 app/assets/javascripts/admin/actions.js