Sun, 04 Jul 2021 14:25:52 +0200
Improved error handling for inventory equipments, fermentables, hops, miscs, suppliers, water and yeasts.
$(document).ready(function() { /** * This will copy the innerHTML of an element to the clipboard * @param element reference OR string */ function copyToClipboard(e) { var tempItem = document.createElement('textarea'); document.body.appendChild(tempItem); tempItem.value = e; tempItem.select(); document.execCommand('Copy'); tempItem.parentElement.removeChild(tempItem); } $('#copytoClipboard').jqxButton({ template: 'success', theme: theme, width: 150 }); $('#copytoClipboard').click(function() { copyToClipboard(forumstr); window.close(); }); });