From 09979fcb0b55961e1dbf15ff5c8a16af88364939 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 20 Jan 2017 12:37:32 +0100 Subject: [PATCH] CustomerVendorPicker: unbenutzte Variable last_unverified_dummy entfernt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Sie wird nur gesetzt, nie gelesen, und vor allem auch nicht mit »var« deklariert — wodurch es im Strict-Modus zu JavaScript-Fehlermeldungen kommt. --- js/autocomplete_customer.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/js/autocomplete_customer.js b/js/autocomplete_customer.js index 3d6b426fe..8e6c236f7 100644 --- a/js/autocomplete_customer.js +++ b/js/autocomplete_customer.js @@ -61,7 +61,6 @@ namespace('kivi', function(k){ state = STATES.PICKED; last_real = $real.val(); last_dummy = $dummy.val(); - last_unverified_dummy = $dummy.val(); $real.trigger('change'); if (o.fat_set_item && item.id) { @@ -85,7 +84,6 @@ namespace('kivi', function(k){ } else if (state == STATES.UNDEFINED && $dummy.val() === '') set_item({}) else { - last_unverified_dummy = $dummy.val(); set_item({ id: last_real, name: last_dummy }) } annotate_state(); @@ -97,7 +95,6 @@ namespace('kivi', function(k){ else if (state == STATES.UNDEFINED && $dummy.val() === '') $dummy.removeClass(STATES.UNDEFINED).addClass(STATES.PICKED); else { - last_unverified_dummy = $dummy.val(); $dummy.addClass(STATES.UNDEFINED).removeClass(STATES.PICKED); } } -- 2.20.1