From 2185c6f630956d597b80527dc972f224ca47a831 Mon Sep 17 00:00:00 2001 From: Samer Albahra Date: Sun, 7 Jun 2020 12:44:19 -0500 Subject: [PATCH] Bump version to 2.2.0 --- config.xml | 6 +++--- manifest.json | 2 +- package.json | 2 +- www/js/main.js | 36 ++++++++++++++++++------------------ 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/config.xml b/config.xml index ecd43117b..e92f25551 100644 --- a/config.xml +++ b/config.xml @@ -1,5 +1,5 @@ - + OpenSprinkler Designed to allow intuitive control of the OpenSprinkler irrigation controller. @@ -41,7 +41,7 @@ Your camera is used to provide an image for your stations. - 1893 + 18103 @@ -120,7 +120,7 @@ - 1893 + 18103 com.albahra.Sprinklers.osx diff --git a/manifest.json b/manifest.json index bdd1ba62d..942e41cee 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "OpenSprinkler", "description": "Designed to allow intuitive control of the OpenSprinkler irrigation controller.", - "version": "2.1.10", + "version": "2.2.0", "manifest_version": 2, "app": { "background": { diff --git a/package.json b/package.json index b33ffe03e..dfffadf27 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "phonegap": { "id": "1371093" }, - "version": "2.1.10", + "version": "2.2.0", "description": "Designed to allow intuitive control of the OpenSprinkler irrigation controller.", "main": "index.html", "scripts": { diff --git a/www/js/main.js b/www/js/main.js index d72e3c445..a4857acf6 100755 --- a/www/js/main.js +++ b/www/js/main.js @@ -2575,7 +2575,7 @@ function showEToAdjustmentOptions( button, callback ) { baseETo: 0, elevation: 600 }, - unescapeJSON(button.value) + unescapeJSON( button.value ) ); if ( isMetric ) { @@ -3287,7 +3287,7 @@ function debugWU() { popup += ( typeof controller.settings.wterr === "number" ? "" + _( "Last Response" ) + "" + getWeatherError( controller.settings.wterr ) + "" : "" ); popup += ""; - if ( controller.settings.wtdata && (typeof controller.settings.wtdata.wp === "string" || typeof controller.settings.wtdata.weatherProvider === "string") ) { + if ( controller.settings.wtdata && ( typeof controller.settings.wtdata.wp === "string" || typeof controller.settings.wtdata.weatherProvider === "string" ) ) { popup += "
"; popup += makeAttribution( controller.settings.wtdata.wp || controller.settings.wtdata.weatherProvider ); } @@ -4056,7 +4056,7 @@ function showOptions( expandItem ) { ""; } - if ( typeof controller.settings.ifkey !== "undefined" || typeof controller.settings.mqtt !== "undefined") { + if ( typeof controller.settings.ifkey !== "undefined" || typeof controller.settings.mqtt !== "undefined" ) { list += "
" + "" + _( "Integrations" ) + ""; @@ -9669,7 +9669,7 @@ var showAbout = ( function() { "" + "" + "

" + - _( "App Version" ) + ": 2.1.10" + + _( "App Version" ) + ": 2.2.0" + "
" + _( "Firmware" ) + ": " + "
" + _( "Hardware Version" ) + ": " + "

" + @@ -11414,40 +11414,40 @@ function showTimeInput( opt ) { "
" + ( opt.helptext ? "

" + opt.helptext + "

" : "" ) + "" + - "
" + + "
" + "
" + "" + "
" + "
" + "" + "
" + - (isMetric ? "" : "
" + + ( isMetric ? "" : "
" + "" + - "
") + + "
" ) + "
" + - "
" + + "
" + "
" + "" : ( parseInt( opt.minutes / 60 ) % 12 === 0 ? 12 : parseInt( opt.minutes / 60 ) % 12 ) + "'>") + + ( isMetric ? pad( ( opt.minutes / 60 >> 0 ) % 24 ) + "'>" : ( parseInt( opt.minutes / 60 ) % 12 === 0 ? 12 : parseInt( opt.minutes / 60 ) % 12 ) + "'>" ) + "
" + "
" + "" + "
" + - (isMetric ? "" : "
" + + ( isMetric ? "" : "
" + "

" + getPeriod() + "

" + - "
") + + "
" ) + "
" + - "
" + + "
" + "
" + "" + "
" + "
" + "" + "
" + - (isMetric ? "" : "
" + + ( isMetric ? "" : "
" + "" + - "
") + + "
" ) + "
" + "" + ( opt.showSun ? "
" + @@ -11478,7 +11478,7 @@ function showTimeInput( opt ) { val = parseInt( input.val() ); if ( dir === 1 ) { - if ( isHour && ((isMetric && val >= 24) || (!isMetric && val >= 12))) { + if ( isHour && ( ( isMetric && val >= 24 ) || ( !isMetric && val >= 12 ) ) ) { val = 0; } if ( !isHour && val >= 59 ) { @@ -11486,7 +11486,7 @@ function showTimeInput( opt ) { var hour = popup.find( ".hour" ), hourFixed = parseInt( hour.val() ); - if (!isMetric) { + if ( !isMetric ) { if ( hourFixed === 12 ) { hourFixed = 0; } @@ -11550,7 +11550,7 @@ function showTimeInput( opt ) { } else { var hour = parseInt( popup.find( ".hour" ).val() ); - if (!isMetric) { + if ( !isMetric ) { if ( isPM && hour !== 12 ) { hour = hour + 12; } @@ -12341,7 +12341,7 @@ function minutesToTime( minutes ) { hour = 12; } - return isMetric ? (pad( (minutes / 60 >> 0) % 24 ) + ":" + pad( minutes % 60 )) : (hour + ":" + pad( minutes % 60 ) + " " + period); + return isMetric ? ( pad( ( minutes / 60 >> 0 ) % 24 ) + ":" + pad( minutes % 60 ) ) : ( hour + ":" + pad( minutes % 60 ) + " " + period ); } function getBitFromByte( byte, bit ) {