Sha256: 7576fd4a5171f0ef4406b3fdc74bf4779dd17c2efc47891d072e93877f845012
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 Bytes
Contents
jQuery(document).ready(function($) { $('input:checkbox.pause').click( function(){ var queue = $(this); var data = {'queue_name': queue.val()}; var url = queue.is(':checked') ? '/pause' : '/unpause'; $.ajax({ type: 'POST', url: url, data: data, async: false, cache: false, success: function() { return true; }, error: function() { return false; }, dataType: 'json' }); }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque-pause-0.0.2 | lib/resque_pause/server/public/pause.js |