Browse Source

publish muk_web_utils - 12.0

pull/115/head
MuK IT GmbH 6 years ago
parent
commit
82b64a2f7e
  1. 2
      muk_web_utils/__manifest__.py
  2. 6
      muk_web_utils/static/src/js/fields/binary.js
  3. 25
      muk_web_utils/static/src/scss/binary.scss
  4. 1
      muk_web_utils/template/assets.xml

2
muk_web_utils/__manifest__.py

@ -20,7 +20,7 @@
{ {
"name": "MuK Web Utils", "name": "MuK Web Utils",
"summary": """Utility Features""", "summary": """Utility Features""",
"version": "12.0.2.9.6",
"version": "12.0.2.9.7",
"category": "Extra Tools", "category": "Extra Tools",
"license": "AGPL-3", "license": "AGPL-3",
"author": "MuK IT", "author": "MuK IT",

6
muk_web_utils/static/src/js/fields/binary.js

@ -49,6 +49,12 @@ fields.FieldBinaryFile.include({
$wrapper.append(this.$el); $wrapper.append(this.$el);
this.setElement($wrapper); this.setElement($wrapper);
}, },
_renderEdit: function () {
this._super.apply(this, arguments);
if (this.nodeOptions && this.nodeOptions.accept) {
this.$('input[name="ufile"]').prop("accept", this.nodeOptions.accept);
}
},
}); });
var FieldBinarySize = fields.FieldFloat.extend({ var FieldBinarySize = fields.FieldFloat.extend({

25
muk_web_utils/static/src/scss/binary.scss

@ -0,0 +1,25 @@
/**********************************************************************************
*
* Copyright (C) 2017 MuK IT GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
**********************************************************************************/
.o_list_view .o_field_widget.o_field_binary_file {
height: 100%;
button.btn {
padding-top: 0.25rem;
}
}

1
muk_web_utils/template/assets.xml

@ -36,6 +36,7 @@
<link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/dropzone.scss" /> <link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/dropzone.scss" />
<link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/module.scss" /> <link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/module.scss" />
<link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/color.scss" /> <link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/color.scss" />
<link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/binary.scss" />
<link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/image.scss" /> <link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/image.scss" />
<link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/copy.scss" /> <link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/copy.scss" />
<link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/share.scss" /> <link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/share.scss" />

Loading…
Cancel
Save