2012-03-04 15:58:16 -05:00
|
|
|
//= require vendor/jquery
|
2012-03-29 16:57:32 -04:00
|
|
|
//= require vendor/jquery.timeago
|
2012-03-04 15:58:16 -05:00
|
|
|
//= require bootstrap
|
|
|
|
//= require_tree .
|
2012-03-29 16:57:32 -04:00
|
|
|
|
2012-05-11 19:48:03 -04:00
|
|
|
$(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');
|
|
|
|
}
|
|
|
|
});
|
2012-03-29 16:57:32 -04:00
|
|
|
});
|