diff --git a/gemeinsamforschen/src/main/webapp/assets/js/unstructuredAnnotation.js b/gemeinsamforschen/src/main/webapp/assets/js/unstructuredAnnotation.js index d3008597b456b6e2410de340dc08b60ba20f85fe..9efba686c9ae477cbd505a4e89ca8bcf91618d16 100644 --- a/gemeinsamforschen/src/main/webapp/assets/js/unstructuredAnnotation.js +++ b/gemeinsamforschen/src/main/webapp/assets/js/unstructuredAnnotation.js @@ -27,7 +27,8 @@ $(document).ready(function() { selector: '.context-menu-one', callback: function(key, options) { - handleContextStuff(key); + // handle the category click + handleCategoryClick(key); }, items: { @@ -268,7 +269,12 @@ function saveButtonHandler() { } } -function handleContextStuff(key) { +/** + * Handle the category click and start the saving event + * + * @param key The selected category + */ +function handleCategoryClick(key) { // if saved selection's range count is > 0 let sel = rangy.getSelection();