From: Moritz Bunkus Date: Mon, 4 Apr 2016 15:13:05 +0000 (+0200) Subject: JS: einige jshint-Warnungen bzgl. Vergleichsoperatoren gefixt X-Git-Tag: release-3.4.1~252 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=16e18c505f8e209f3617485697b5827cd6d038d4;p=kivitendo-erp.git JS: einige jshint-Warnungen bzgl. Vergleichsoperatoren gefixt --- diff --git a/js/kivi.CustomerVendor.js b/js/kivi.CustomerVendor.js index 38afb74e1..b192d1778 100644 --- a/js/kivi.CustomerVendor.js +++ b/js/kivi.CustomerVendor.js @@ -117,7 +117,7 @@ namespace('kivi.CustomerVendor', function(ns) { var isNotEmpty = function() { for(var i in $mapSearchElements) - if( ($mapSearchElements[i].attr('id') != prefix + 'country') && ($mapSearchElements[i].val() == '') ) + if( ($mapSearchElements[i].attr('id') != prefix + 'country') && ($mapSearchElements[i].val() === '') ) return false; return true; }; @@ -137,7 +137,7 @@ namespace('kivi.CustomerVendor', function(ns) { } source_address = source_address || ''; - var query = source_address != '' ? 'saddr=' + encodeURIComponent(source_address) + '&daddr=' : 'q='; + var query = source_address !== '' ? 'saddr=' + encodeURIComponent(source_address) + '&daddr=' : 'q='; var url = 'https://maps.google.com/maps?' + query + encodeURIComponent(searchString); window.open(url, '_blank'); @@ -187,7 +187,7 @@ namespace('kivi.CustomerVendor', function(ns) { return true; var number = $input.val().replace(/\s+/g, ''); - if (number == '') + if (number === '') $action.hide(); else $action.prop('href', 'controller.pl?action=CTI/call&number=' + encodeURIComponent(number)).show();