Sha256: f481b207c36bdd1abd5a7d23e7123f4420eaf13eeb6b9305ef622c642fbfd964
Contents?: true
Size: 373 Bytes
Versions: 12
Compression:
Stored size: 373 Bytes
Contents
$(document).ready( function() { $('a.delete').click( function() { if ( confirm("Are you sure?") ) { var href = $(this).attr('href'); $.ajax({ type: 'delete', url: href, success: function() { window.location = '/entries'; } }); } // this isn't really a link ... // so tell the browser we've handled it return false; }); });
Version data entries
12 entries across 12 versions & 4 rubygems