Skip to content
Snippets Groups Projects
Commit ead2fdb4 authored by Sven Kästle's avatar Sven Kästle
Browse files

fix: Rename 'handleContextStuff' function to 'handleCategoryClick'

parent 54b7c90f
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,8 @@ $(document).ready(function() { ...@@ -27,7 +27,8 @@ $(document).ready(function() {
selector: '.context-menu-one', selector: '.context-menu-one',
callback: function(key, options) { callback: function(key, options) {
handleContextStuff(key); // handle the category click
handleCategoryClick(key);
}, },
items: { items: {
...@@ -268,7 +269,12 @@ function saveButtonHandler() { ...@@ -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 // if saved selection's range count is > 0
let sel = rangy.getSelection(); let sel = rangy.getSelection();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment