Browse Source

[FIX] web_switch_company_warning

Remove place holders in readme
Add "use strict" in js
pull/233/head
hparfr 9 years ago
parent
commit
2ab6a436cc
  1. 8
      web_switch_company_warning/readme.rst
  2. 3
      web_switch_company_warning/static/src/js/switch_comapny_warning_worker.js
  3. 2
      web_switch_company_warning/static/src/js/switch_company_warning.js

8
web_switch_company_warning/readme.rst

@ -23,12 +23,12 @@ Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/
{project_repo}/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 <https://github.com/OCA/
{project_repo}/issues/new?body=module:%20
{module_name}%0Aversion:%20
{version}%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
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

3
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;

2
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

Loading…
Cancel
Save