jenkins-bot has submitted this change and it was merged. Change subject: Fix precision detection in globe coordinate parser ......................................................................
Fix precision detection in globe coordinate parser Bug: 49415 Change-Id: I9f9bb6ffdc7ba93bdd51561fed6110f6f854c359 --- M DataValues/resources/globeCoordinate.js/src/globeCoordinate.parser.js 1 file changed, 3 insertions(+), 3 deletions(-) Approvals: Tobias Gritschacher: Looks good to me, approved jenkins-bot: Verified diff --git a/DataValues/resources/globeCoordinate.js/src/globeCoordinate.parser.js b/DataValues/resources/globeCoordinate.js/src/globeCoordinate.parser.js index 3b7387c..aaef6b7 100644 --- a/DataValues/resources/globeCoordinate.js/src/globeCoordinate.parser.js +++ b/DataValues/resources/globeCoordinate.js/src/globeCoordinate.parser.js @@ -572,10 +572,10 @@ result0 = ( function( offset, sign, full, min, dotsec, sec, postdot ) { var r = full + min / 60 + sec / 3600; var precision = 1; - if( min > 0 ) { - precision = 1 / 60; - } else if( sec > 0 ) { + if( sec > 0 ) { precision = 1 / 3600; + } else if( min > 0 ) { + precision = 1 / 60; } if ( dotsec === '\'' ) { r += ( postdot[0] / 3600 ); -- To view, visit https://gerrit.wikimedia.org/r/67972 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I9f9bb6ffdc7ba93bdd51561fed6110f6f854c359 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DataValues Gerrit-Branch: mw1.22-wmf6 Gerrit-Owner: Tobias Gritschacher <tobias.gritschac...@wikimedia.de> Gerrit-Reviewer: Tobias Gritschacher <tobias.gritschac...@wikimedia.de> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits