Browse Source

💚 mail_check_immediately/static/src/js/main

pull/261/head
Ivan Yelizariev 5 years ago
parent
commit
58c39b0674
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) {
"use strict";
instance.mail.Wall.include({
init: function() {
this._super.apply(this, arguments);
@ -42,7 +43,7 @@ openerp.mail_check_immediately = function(instance, local) {
context: new instance.web.CompoundContext(),
})
.then(function(res) {
var value;
var value = null;
if (res) value = $.timeago(res);
value = value || "undefined";
_this.$el

Loading…
Cancel
Save