[FIX] Avoid reserved keywords as method names
authorddm <ddm@openerp.com>
Thu, 21 Nov 2013 11:49:22 +0000 (12:49 +0100)
committerddm <ddm@openerp.com>
Thu, 21 Nov 2013 11:49:22 +0000 (12:49 +0100)
bzr revid: ddm@openerp.com-20131121114922-w731pvjnnvqzxu42

addons/website/static/src/js/website.tour.banner.js
addons/website/static/src/js/website.tour.js
addons/website_blog/static/src/js/website.tour.blog.js
addons/website_event/static/src/js/website.tour.event.js
addons/website_sale/static/src/js/website.tour.shop.js

index f9b1fe1..5e82611 100644 (file)
             ];
             return this._super();
         },
-        continue: function () {
+        resume: function () {
             return (this.isCurrentStep('part-2') || this.isCurrentStep('show-tutorials')) && !this.tour.ended();
         },
     });
index 64f9734..8cefecb 100644 (file)
@@ -27,7 +27,7 @@
             $('.popover.tour').remove();
         },
         start: function () {
-            if (this.continue() || ((this.currentStepIndex() === 0) && !this.tour.ended())) {
+            if (this.resume() || ((this.currentStepIndex() === 0) && !this.tour.ended())) {
                 this.tour.start();
             }
         },
@@ -68,7 +68,7 @@
                 window.location.replace(newUrl);
             }
         },
-        continue: function () {
+        resume: function () {
             // Override if necessary
             return this.currentStepIndex() === 0;
         },
index 8ce3fb0..e524758 100644 (file)
             ];
             return this._super();
         },
-        continue: function () {
+        resume: function () {
             return this.isCurrentStep('post-page') && !this.tour.ended();
         },
         trigger: function () {
-            return (this.continue() && this.testUrl(/^\/blog\/[0-9]+\/\?enable_editor=1/)) || this._super();
+            return (this.resume() && this.testUrl(/^\/blog\/[0-9]+\/\?enable_editor=1/)) || this._super();
         },
     });
 
index 941a8c6..5d97c32 100644 (file)
             ];
             return this._super();
         },
-        continue: function () {
+        resume: function () {
             return this.isCurrentStep('event-page') && !this.tour.ended();
         },
         trigger: function () {
-            return (this.continue() && this.testUrl(/^\/event\/[0-9]+\/\?enable_editor=1/)) || this._super();
+            return (this.resume() && this.testUrl(/^\/event\/[0-9]+\/\?enable_editor=1/)) || this._super();
         },
     });
 
index 42f0645..835ccd9 100644 (file)
             ];
             return this._super();
         },
-        continue: function () {
+        resume: function () {
             return this.isCurrentStep('product-page') && !this.tour.ended();
         },
         trigger: function (url) {
-            return (this.continue() && this.testUrl(/^\/shop\/product\/[0-9]+\/\?enable_editor=1/)) || this._super();
+            return (this.resume() && this.testUrl(/^\/shop\/product\/[0-9]+\/\?enable_editor=1/)) || this._super();
         },
     });