Browse Source

[FIX] change icon path from /static/src/img to /static/description see : https://github.com/OCA/web/pull/18#issuecomment-50164937

pull/18/head
Adil Houmadi 10 years ago
parent
commit
13faa4066d
  1. 0
      web_easy_switch_company/static/description/icon.png
  2. 0
      web_easy_switch_company/static/description/selection-off.png
  3. 0
      web_easy_switch_company/static/description/selection-on.png
  4. 4
      web_easy_switch_company/static/src/js/switch_company.js

0
web_easy_switch_company/static/src/img/icon.png → web_easy_switch_company/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 6.0 KiB

After

Width: 128  |  Height: 128  |  Size: 6.0 KiB

0
web_easy_switch_company/static/src/img/selection-off.png → web_easy_switch_company/static/description/selection-off.png

Before

Width: 16  |  Height: 16  |  Size: 112 B

After

Width: 16  |  Height: 16  |  Size: 112 B

0
web_easy_switch_company/static/src/img/selection-on.png → web_easy_switch_company/static/description/selection-on.png

Before

Width: 16  |  Height: 16  |  Size: 445 B

After

Width: 16  |  Height: 16  |  Size: 445 B

4
web_easy_switch_company/static/src/js/switch_company.js

@ -118,10 +118,10 @@ openerp.web_easy_switch_company = function (instance) {
id: res_company[i][0]
});
if (res_company[i][0] == self.current_company_id){
logo_state = '/web_easy_switch_company/static/src/img/selection-on.png';
logo_state = '/web_easy_switch_company/static/description/selection-on.png';
}
else{
logo_state = '/web_easy_switch_company/static/src/img/selection-off.png';
logo_state = '/web_easy_switch_company/static/description/selection-off.png';
}
self.companies.push({
id: res_company[i][0],

Loading…
Cancel
Save