diff --git a/octoprint_toptemp/static/js/TopTemp.js b/octoprint_toptemp/static/js/TopTemp.js index 20cfb5e..ef2d710 100644 --- a/octoprint_toptemp/static/js/TopTemp.js +++ b/octoprint_toptemp/static/js/TopTemp.js @@ -241,7 +241,7 @@ $(function() { if (calc == null || calc == false || $.trim(calc) == ""){ return val; } - return eval(calc.replace("X",val)); + return eval(calc.replace(/x/ig,val)); } // Get updated data from the "feeds" @@ -700,7 +700,7 @@ $(function() { }else{ $('#settings_plugin_toptemp .UICShowIconPicker').off('click.TopTempPlugin').on('click.TopTempPlugin',function(event){ new PNotify({ - title: 'Instal UI Customizer', + title: 'Install UI Customizer', text: 'In order to use the icon picker please install the UI Customizer plugin.
More...', type: "notice", hide: false