Browse Source

publish muk_web_theme - 12.0

pull/115/head
MuK IT GmbH 6 years ago
parent
commit
cf127fd5c2
  1. 2
      muk_web_theme/__manifest__.py
  2. 12
      muk_web_theme/static/src/js/chrome/apps.js
  3. 2
      muk_web_theme/static/src/xml/apps.xml

2
muk_web_theme/__manifest__.py

@ -19,7 +19,7 @@
{
"name": "MuK Backend Theme",
"summary": "Odoo Community Backend Theme",
"version": "12.0.1.4.3",
"version": "12.0.1.4.4",
"category": "Themes/Backend",
"license": "AGPL-3",
"author": "MuK IT",

12
muk_web_theme/static/src/js/chrome/apps.js

@ -152,10 +152,10 @@ AppsMenu.include({
this._searchMenusSchedule();
return;
}
var all = this.$search_results.find(".mk_menu_search_result"),
pre_focused = all.filter(".active") || $(all[0]),
offset = all.index(pre_focused),
key = event.key;
var all = this.$search_results.find(".mk_menu_search_result");
var key = event.key || String.fromCharCode(event.which);
var pre_focused = all.filter(".active") || $(all[0]);
var offset = all.index(pre_focused);
if (key === "Tab") {
event.preventDefault();
key = event.shiftKey ? "ArrowUp" : "ArrowDown";
@ -171,9 +171,7 @@ AppsMenu.include({
offset++;
break;
default:
if (key.length === 1 || key === "Backspace") {
this._searchMenusSchedule();
}
this._searchMenusSchedule();
return;
}
if (offset < 0) {

2
muk_web_theme/static/src/xml/apps.xml

@ -60,7 +60,7 @@
<t t-foreach="results" t-as="result">
<t t-set="menu" t-value="widget._menuInfo(result.original)"/>
<a t-attf-class="mk_menu_search_result dropdown-item col-12 ml-auto mr-auto #{result_first ? 'active' : ''}"
t-attf-style="background-image:url('data:image/png;base64,#{menu.web_icon_data}')"
t-attf-style="background-image: #{menu.web_icon_data ? 'url(data:image/png;base64,' + menu.web_icon_data + ')' : 'none'}"
t-attf-href="#menu_id=#{menu.id}&amp;action_id=#{menu.action_id}"
t-att-data-menu-id="menu.id"
t-att-data-action-id="menu.action_id"

Loading…
Cancel
Save