From 16e18c505f8e209f3617485697b5827cd6d038d4 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 4 Apr 2016 17:13:05 +0200 Subject: [PATCH] JS: einige jshint-Warnungen bzgl. Vergleichsoperatoren gefixt --- js/kivi.CustomerVendor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.20.1