Skip to content

Commit

Permalink
Fixe spelling. And case sensitive in post calc
Browse files Browse the repository at this point in the history
  • Loading branch information
LazeMSS committed Apr 2, 2021
1 parent 456715a commit 0aa2cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octoprint_toptemp/static/js/TopTemp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.<br><a target="_new" href="https://github.com/LazeMSS/OctoPrint-UICustomizer/">More...</a>',
type: "notice",
hide: false
Expand Down

0 comments on commit 0aa2cc3

Please sign in to comment.