[FIX] web_switch_company_warning

Remove place holders in readme
Add "use strict" in js
This commit is contained in:
hparfr
2015-09-30 09:41:05 +02:00
parent 7d8a2c0abf
commit 2ab6a436cc
3 changed files with 8 additions and 5 deletions

View File

@@ -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

View File

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

View File

@@ -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