projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a550592
)
[IMP]check if interval presents then first stop that.
author
Vidhin Mehta (OpenERP)
<vme@tinyerp.com>
Mon, 29 Oct 2012 12:02:13 +0000
(17:32 +0530)
committer
Vidhin Mehta (OpenERP)
<vme@tinyerp.com>
Mon, 29 Oct 2012 12:02:13 +0000
(17:32 +0530)
bzr revid: vme@tinyerp.com-
20121029120213
-61uy6frqo0ormdc6
addons/web/static/src/js/chrome.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/chrome.js
b/addons/web/static/src/js/chrome.js
index
2478ae9
..
821ed2d
100644
(file)
--- a/
addons/web/static/src/js/chrome.js
+++ b/
addons/web/static/src/js/chrome.js
@@
-302,6
+302,8
@@
instance.web.favicon = instance.web.Loading.include({
//when time interval is known than start favicon can be used.
start_favicon: function(second, options){
+ if(!this.interval)
+ this.stop_favicon();
var count = 0;
var self = this;
this.interval = setInterval(function(){
@@
-318,6
+320,7
@@
instance.web.favicon = instance.web.Loading.include({
$('link[type="image/x-icon"]').attr('href', this.original_favi.attr("href"));
$('head').append(this.original_favi);
document.title = this.old_title;
+ this.interval = null;
},
loading_title:function(percentage){