mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] web_switch_company_warning
Remove place holders in readme Add "use strict" in js
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user