Browse Source

publish muk_web_utils - 12.0

pull/68/head
MuK IT GmbH 5 years ago
parent
commit
702407a098
  1. 2
      muk_web_utils/__manifest__.py
  2. 44
      muk_web_utils/static/src/js/libs/underscore.js
  3. 1
      muk_web_utils/template/assets.xml

2
muk_web_utils/__manifest__.py

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

44
muk_web_utils/static/src/js/libs/underscore.js

@ -0,0 +1,44 @@
/**********************************************************************************
*
* Copyright (C) 2018 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/>.
*
**********************************************************************************/
_.mixin({
memoizeDebounce: function(func, wait, options) {
wait = (typeof wait !== 'undefined') ? wait : 0;
options = (typeof options !== 'undefined') ? options : {};
var mem = _.memoize(function() {
return _.debounce(func, wait, options)
}, options.resolver);
return function() {
mem.apply(this, arguments).apply(this, arguments)
}
}
});
_.mixin({
memoizeThrottle: function(func, wait, options) {
wait = (typeof wait !== 'undefined') ? wait : 0;
options = (typeof options !== 'undefined') ? options : {};
var mem = _.memoize(function() {
return _.throttle(func, wait, options)
}, options.resolver);
return function() {
mem.apply(this, arguments).apply(this, arguments)
}
}
});

1
muk_web_utils/template/assets.xml

@ -27,6 +27,7 @@
<script type="text/javascript" src="/muk_web_utils/static/libs/simplebar/simplebar.js" />
<script type="text/javascript" src="/muk_web_utils/static/src/js/libs/jquery.js" />
<script type="text/javascript" src="/muk_web_utils/static/src/js/libs/scrollbar.js" />
<script type="text/javascript" src="/muk_web_utils/static/src/js/libs/underscore.js" />
</xpath>
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/muk_web_utils/static/src/scss/variables.scss" />

Loading…
Cancel
Save