www/js/prod_forum.js

Wed, 04 Mar 2020 10:48:21 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 04 Mar 2020 10:48:21 +0100
changeset 622
39902353b159
parent 565
dfc850e6ee1f
permissions
-rw-r--r--

Workaround for hang during startup. Changed order of displayed fields on the yeast tab. Tooltip text changes. More decimals on the checklist for misc ingredients. More decimals for the starter on product print.


$(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();
 });

});

mercurial