Browse Source

publish muk_web_branding - 12.0

pull/115/head
MuK IT GmbH 6 years ago
parent
commit
56af9993ab
  1. 2
      muk_web_branding/__manifest__.py
  2. 2
      muk_web_branding/static/src/js/fields/upgrade.js
  3. 5
      muk_web_branding/static/src/js/views/res_config_settings.js

2
muk_web_branding/__manifest__.py

@ -20,7 +20,7 @@
{ {
"name": "MuK Web Branding", "name": "MuK Web Branding",
"summary": """Branding and Debranding""", "summary": """Branding and Debranding""",
"version": "12.0.1.1.2",
"version": "12.0.1.1.3",
"category": "Extra Tools", "category": "Extra Tools",
"license": "AGPL-3", "license": "AGPL-3",
"website": "http://www.mukit.at", "website": "http://www.mukit.at",

2
muk_web_branding/static/src/js/fields/upgrade.js

@ -31,7 +31,7 @@ var DisableMixin = {
_render: function () { _render: function () {
var $container = this.$el.parent().parent(); var $container = this.$el.parent().parent();
if ($container.hasClass('o_setting_box')) { if ($container.hasClass('o_setting_box')) {
$container.remove();
$container.addClass('o_hidden');
} }
}, },
} }

5
muk_web_branding/static/src/js/views/res_config_settings.js

@ -32,8 +32,9 @@ settings.Renderer.include({
_render: function () { _render: function () {
var res = this._super.apply(this, arguments); var res = this._super.apply(this, arguments);
$.each(this.$('.o_settings_container'), function() { $.each(this.$('.o_settings_container'), function() {
if($(this).children().length == 0) {
$(this).prev().remove();
if($(this).children(':not(.o_hidden)').length === 0) {
$(this).prev().addClass('o_hidden');
$(this).addClass('o_hidden');
} }
}); });
return res; return res;

Loading…
Cancel
Save