Added presenters and timezone locales with diff and popover

This commit is contained in:
Joseph Cohen
2015-01-07 18:48:10 -06:00
parent ff73992050
commit ffbe9b31bf
10 changed files with 169 additions and 21 deletions
+9
View File
@@ -50,6 +50,15 @@ $(function() {
// App setup
window.CachetHQ = {};
moment.locale(Global.locale);
$('abbr.timeago').each(function () {
var $el = $(this);
$el
.livestamp($el.data('timeago'))
.popover();
});
window.CachetHQ.Notifier = function () {
this.notify = function (message, type, options) {
type = (typeof type === 'undefined' || type === 'error') ? 'error' : type;