[FIX] website tour: add 'url' triggers
authorChristophe Matthieu <chm@openerp.com>
Mon, 20 Jan 2014 15:16:37 +0000 (16:16 +0100)
committerChristophe Matthieu <chm@openerp.com>
Mon, 20 Jan 2014 15:16:37 +0000 (16:16 +0100)
bzr revid: chm@openerp.com-20140120151637-ac1orinuq49rcqx9

addons/website/static/src/js/website.tour.js

index 2077157..77136bd 100644 (file)
@@ -55,7 +55,7 @@
                             var index = stack.indexOf(id);
                             if (index !== -1) {
                                 var url = new website.UrlParser(window.location.href);
-                                var test = typeof url === "string" ?
+                                var test = typeof step.trigger.url === "string" ?
                                     step.trigger.url == url.pathname+url.search :
                                     step.trigger.url.test(url.pathname+url.search);
                                 if (!test) return;