new jquery.timeago with cutoff

This commit is contained in:
Shish
2013-05-18 13:46:27 +01:00
parent 5a9f69afbe
commit c530e41335
3 changed files with 191 additions and 1 deletions

View File

@ -1,6 +1,8 @@
// Adding jQuery ui stuff
$(document).ready(function() {
var dayMS = 1000 * 60 * 60 * 24;
jQuery.timeago.settings.cutoff = 365 * dayMS;
$("time").timeago();
$('.autocomplete_tags').autocomplete(base_href + '/api/internal/tag_list/complete', {