From 2ab6a436cc3f58d4c2805fc3901c44903ae1b8c3 Mon Sep 17 00:00:00 2001 From: hparfr Date: Wed, 30 Sep 2015 09:41:05 +0200 Subject: [PATCH] [FIX] web_switch_company_warning Remove place holders in readme Add "use strict" in js --- web_switch_company_warning/readme.rst | 8 ++++---- .../static/src/js/switch_comapny_warning_worker.js | 3 ++- .../static/src/js/switch_company_warning.js | 2 ++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/web_switch_company_warning/readme.rst b/web_switch_company_warning/readme.rst index 201e3baf..bdf0b58a 100644 --- a/web_switch_company_warning/readme.rst +++ b/web_switch_company_warning/readme.rst @@ -23,12 +23,12 @@ Bug Tracker =========== Bugs are tracked on `GitHub Issues `_. +web/issues>`_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here `_. +web/issues/new?body=module:%20 +web_switch_company_warning%0Aversion:%20 +0.1%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Credits diff --git a/web_switch_company_warning/static/src/js/switch_comapny_warning_worker.js b/web_switch_company_warning/static/src/js/switch_comapny_warning_worker.js index 680592d5..d4b4fbe4 100644 --- a/web_switch_company_warning/static/src/js/switch_comapny_warning_worker.js +++ b/web_switch_company_warning/static/src/js/switch_comapny_warning_worker.js @@ -1,3 +1,4 @@ +"use strict"; //Show a big banner in the top of the page if the company has been //changed in another tab or window (in the same browser) @@ -14,7 +15,7 @@ addEventListener("connect", function(ee) { if (lastCtx && newCtx != lastCtx) { con.map(function (eport) { - eport.postMessage({ type: 'newCtx', "newCtx": newCtx, "lastCtx": lastCtx}); + eport.postMessage({ type: "newCtx", "newCtx": newCtx, "lastCtx": lastCtx}); }); } lastCtx = newCtx; diff --git a/web_switch_company_warning/static/src/js/switch_company_warning.js b/web_switch_company_warning/static/src/js/switch_company_warning.js index 31e1a7ee..a49040fc 100644 --- a/web_switch_company_warning/static/src/js/switch_company_warning.js +++ b/web_switch_company_warning/static/src/js/switch_company_warning.js @@ -1,3 +1,5 @@ +'use strict'; + openerp.web_switch_company_warning = function (instance) { //Show a big banner in the top of the page if the company has been