mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 06:36:27 +08:00
Move it again
This commit is contained in:
parent
0ad93d1288
commit
8b3fce9656
1 changed files with 5 additions and 9 deletions
|
@ -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();
|
||||
});
|
||||
}());
|
||||
|
|
Loading…
Reference in a new issue