Move it again

This commit is contained in:
Mojca Lorber 2020-09-22 11:38:32 +02:00
parent 0ad93d1288
commit 8b3fce9656

View file

@ -35,12 +35,6 @@ var SmartAnnotation = (function() {
return $html;
}
function initAtWhoClose() {
$('.atwho-view').on('click', '.dismiss', function() {
$('.atwho-view').hide();
});
}
// Generates suggestion dropdown filter
function generateFilterMenu() {
var menu = '';
@ -205,8 +199,7 @@ var SmartAnnotation = (function() {
}
return {
init: init,
initAtWhoClose: initAtWhoClose
init: init
};
}
// Closes the atwho popup * needed in repositories to close the popup
@ -218,7 +211,6 @@ var SmartAnnotation = (function() {
function initialize(field) {
var atWho = new SetAtWho(field);
atWho.init();
atWho.initAtWhoClose();
}
return Object.freeze({
@ -236,4 +228,8 @@ var SmartAnnotation = (function() {
SmartAnnotation.init(this);
}
});
$(document).on('click', '.atwho-view .dismiss', function() {
$(this).closest('.atwho-view').hide();
});
}());