diff --git a/core/code/toolbox.js b/core/code/toolbox.js index b6daf5a8b..478af9419 100644 --- a/core/code/toolbox.js +++ b/core/code/toolbox.js @@ -126,7 +126,7 @@ IITC.toolbox = { if (typeof buttonData.title === 'string') buttonElement.title = buttonData.title; if (typeof buttonData.class === 'string') buttonElement.className = buttonData.class; if (typeof buttonData.access_key === 'string') buttonElement.accessKey = buttonData.access_key; - if (typeof buttonData.mouseover === 'string') buttonElement.mouseover = buttonData.mouseover; + if (typeof buttonData.mouseover === 'function') buttonElement.onmouseover = buttonData.mouseover; if (typeof buttonData.icon === 'string') { const iconHTML = ``;