Skip to content
Permalink
Browse files

More sane timeago include

Fixes #864
  • Loading branch information...
nikolai-b committed Aug 11, 2019
1 parent 5398b6a commit 90e5625556822db6bfc66dc298db7ad856e23fc4
Showing with 2 additions and 3 deletions.
  1. +1 −0 app/assets/javascripts/application.js
  2. +1 −3 app/assets/javascripts/timeago_ui.js
@@ -15,6 +15,7 @@
//= require jquery-ui/datepicker
//= require jquery-ui/dialog
//= require jquery-ui/slider
//= require timeago
//= require tinymce-jquery
//= require tinymce_init
//= require leaflet
@@ -1,5 +1,3 @@
$(document).ready(function () {
const jtimeago = require('jquery')
require('timeago/jquery.timeago')
jtimeago('time.timeago').timeago()
$('time.timeago').timeago()
})

0 comments on commit 90e5625

Please sign in to comment.
You can’t perform that action at this time.