@ -380,12 +380,14 @@ function checkTempRangeMax() {
}
}
}
}
<!-- removeIf ( ! thermostat ) -- >
function doResetThermostatCounters ( ask ) {
function doResetThermostatCounters ( ask ) {
var question = ( typeof ask === "undefined" || false === ask ) ?
var question = ( typeof ask === "undefined" || false === ask ) ?
null :
null :
"Are you sure you want to reset burning counters?" ;
"Are you sure you want to reset burning counters?" ;
return doAction ( question , "thermostat_reset_counters" ) ;
return doAction ( question , "thermostat_reset_counters" ) ;
}
}
<!-- endRemoveIf ( ! thermostat ) -- >
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// Actions
// Actions
@ -1735,7 +1737,10 @@ $(function() {
$ ( ".button-settings-factory" ) . on ( "click" , doFactoryReset ) ;
$ ( ".button-settings-factory" ) . on ( "click" , doFactoryReset ) ;
$ ( "#uploader" ) . on ( "change" , onFileUpload ) ;
$ ( "#uploader" ) . on ( "change" , onFileUpload ) ;
$ ( ".button-upgrade" ) . on ( "click" , doUpgrade ) ;
$ ( ".button-upgrade" ) . on ( "click" , doUpgrade ) ;
<!-- removeIf ( ! thermostat ) -- >
$ ( ".button-thermostat-reset-counters" ) . on ( 'click' , doResetThermostatCounters ) ;
$ ( ".button-thermostat-reset-counters" ) . on ( 'click' , doResetThermostatCounters ) ;
<!-- endRemoveIf ( ! thermostat ) -- >
$ ( ".button-apikey" ) . on ( "click" , generateAPIKey ) ;
$ ( ".button-apikey" ) . on ( "click" , generateAPIKey ) ;
$ ( ".button-upgrade-browse" ) . on ( "click" , function ( ) {
$ ( ".button-upgrade-browse" ) . on ( "click" , function ( ) {