Browse Source

publish muk_web_utils - 11.0

11.0
MuK IT GmbH 5 years ago
parent
commit
71e5a7036d
  1. 2
      muk_web_utils/__manifest__.py
  2. 6
      muk_web_utils/static/src/js/jquery.js

2
muk_web_utils/__manifest__.py

@ -20,7 +20,7 @@
{
"name": "MuK Web Utils",
"summary": """Utility Features""",
"version": "11.0.2.0.19",
"version": "11.0.2.0.20",
"category": "Extra Tools",
"license": "AGPL-3",
"website": "http://www.mukit.at",

6
muk_web_utils/static/src/js/jquery.js

@ -29,7 +29,7 @@ $.fn.dndHover = function(options) {
var collection = $();
self.on('dragenter', function(event) {
if (collection.size() === 0) {
self.trigger('dndHoverStart');
self.trigger('dndHoverStart', [event]);
}
collection = collection.add(event.target);
});
@ -37,14 +37,14 @@ $.fn.dndHover = function(options) {
setTimeout(function() {
collection = collection.not(event.target);
if (collection.size() === 0) {
self.trigger('dndHoverEnd');
self.trigger('dndHoverEnd', [event]);
}
}, 1);
});
self.on('drop', function(event) {
setTimeout(function() {
collection = $();
self.trigger('dndHoverEnd');
self.trigger('dndHoverEnd', [event]);
}, 1);
});
});
Loading…
Cancel
Save