[FIX] apps: add timestamp to check image to avoid cache problems
authorChristophe Simonis <chs@openerp.com>
Thu, 21 Mar 2013 16:26:36 +0000 (17:26 +0100)
committerChristophe Simonis <chs@openerp.com>
Thu, 21 Mar 2013 16:26:36 +0000 (17:26 +0100)
bzr revid: chs@openerp.com-20130321162636-p5w97ublixf00o5s

openerp/addons/base/static/src/js/apps.js

index 8e11f07..4ac0100 100644 (file)
@@ -56,7 +56,8 @@ openerp.base = function(instance) {
                     });
 
                 };
-                i.src = _.str.sprintf('%s/web/static/src/img/sep-a.gif', client.origin);
+                var ts = new Date().getTime();
+                i.src = _.str.sprintf('%s/web/static/src/img/sep-a.gif?%s', client.origin, ts);
                 return d.promise();
             };
             if (instance.base.apps_client) {