Browse Source

💚 mail_check_immediately/static/src/js/main

pull/259/head
Ivan Yelizariev 5 years ago
parent
commit
69c89a921d
No known key found for this signature in database GPG Key ID: 93F14FB6A8B57057
  1. 3
      mail_check_immediately/static/src/js/main.js

3
mail_check_immediately/static/src/js/main.js

@ -1,4 +1,5 @@
openerp.mail_check_immediately = function(instance, local) { openerp.mail_check_immediately = function(instance, local) {
"use strict";
instance.mail.Wall.include({ instance.mail.Wall.include({
init: function() { init: function() {
this._super.apply(this, arguments); this._super.apply(this, arguments);
@ -42,7 +43,7 @@ openerp.mail_check_immediately = function(instance, local) {
context: new instance.web.CompoundContext(), context: new instance.web.CompoundContext(),
}) })
.then(function(res) { .then(function(res) {
var value;
var value = null;
if (res) value = $.timeago(res); if (res) value = $.timeago(res);
value = value || "undefined"; value = value || "undefined";
_this.$el _this.$el

Loading…
Cancel
Save