mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
20 lines
514 B
JavaScript
20 lines
514 B
JavaScript
//= require vendor/jquery
|
|
//= require vendor/jquery.timeago
|
|
//= require bootstrap
|
|
//= require_tree .
|
|
|
|
$(function() {
|
|
$.timeago.settings.allowFuture = true
|
|
$("time").timeago();
|
|
});
|
|
|
|
$(function() {
|
|
$('.check_all').live('click', function() {
|
|
var checked = $(this).attr('checked');
|
|
if (checked == 'checked') {
|
|
$('input[type=checkbox]', $(this).closest('table')).attr('checked', checked);
|
|
} else {
|
|
$('input[type=checkbox]', $(this).closest('table')).removeAttr('checked');
|
|
}
|
|
});
|
|
});
|