Browse Source
💚 mail_check_immediately/static/src/js/main
pull/261/head
Ivan Yelizariev
5 years ago
No known key found for this signature in database
GPG Key ID: 93F14FB6A8B57057
1 changed files with
2 additions and
1 deletions
-
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 |
|
|