Fixes merge conflicts with smart-annotations branch

This commit is contained in:
Oleksii Kriuchykhin 2017-01-24 15:20:50 +01:00
parent f1483e4cad
commit 365eef506c
2 changed files with 5 additions and 12 deletions

View file

@ -185,12 +185,8 @@ function formCallback($form) {
setTimeout(function() {
initStepsComments();
<<<<<<< HEAD
openLinksInNewTab();
animateSpinner(null, false);
=======
SmartAnnotation.preventPropagation('.atwho-user-popover');
>>>>>>> smart-annotations
}, 1000);
return true;
});
@ -281,12 +277,9 @@ function formNewAjax($form) {
formCallback($form);
formNewAjax($form);
applyCancelOnNew();
<<<<<<< HEAD
animateSpinner(null, false);
=======
TinyMCE.destroyAll();
SmartAnnotation.preventPropagation('.atwho-user-popover');
>>>>>>> smart-annotations
});
}

View file

@ -336,11 +336,11 @@ var SmartAnnotation = (function() {
{query: query},
function(data) {
if (data.users.length < 1) {
callback([{no_results: 1}]);
} else {
callback(data.users);
}
initDismissButton();
callback([{no_results: 1}]);
} else {
callback(data.users);
}
initDismissButton($('.atwho-view[style]'));
}
);
},