mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 11:23:48 -05:00
It’s weird to be on a page that says ‘2 seconds ago’ and stays stuck there. We don’t want to AJAX the whole page because it would get in the way of interacting with the list of notifications. This commit adds the venerable jQuery Timeago[1] plugin to keep the relative times accurate and fresh. 1. http://timeago.yarp.com/
8 lines
242 B
JavaScript
8 lines
242 B
JavaScript
$(() => $("time.timeago").timeago());
|
|
|
|
$(() => GOVUK.modules.start());
|
|
|
|
$(() => new GOVUK.SelectionButtons('.block-label input, .sms-message-option input'));
|
|
|
|
$(() => $('.error-message').eq(0).parent('label').next('input').trigger('focus'));
|