mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
22 lines
495 B
JavaScript
22 lines
495 B
JavaScript
|
|
Template.membersWidget.rendered = function() {
|
||
|
|
if (! Meteor.user().isBoardMember())
|
||
|
|
return;
|
||
|
|
|
||
|
|
_.each(['.js-member', '.js-label'], function(className) {
|
||
|
|
Utils.liveEvent('mouseover', function($this) {
|
||
|
|
$this.find(className).draggable({
|
||
|
|
appendTo: 'body',
|
||
|
|
helper: 'clone',
|
||
|
|
revert: 'invalid',
|
||
|
|
revertDuration: 150,
|
||
|
|
snap: false,
|
||
|
|
snapMode: 'both',
|
||
|
|
start: function() {
|
||
|
|
Popup.close();
|
||
|
|
}
|
||
|
|
});
|
||
|
|
});
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|