From 37acd860d7d5a25f11601533aa6dddb7fc6f88d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 10 Aug 2018 12:47:52 +0200 Subject: [PATCH] Auftrags-Controller: kivi.Order.js: Variable row nicht redeklarieren. --- js/kivi.Order.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/kivi.Order.js b/js/kivi.Order.js index 673b9a3e4..cee625118 100644 --- a/js/kivi.Order.js +++ b/js/kivi.Order.js @@ -284,10 +284,11 @@ namespace('kivi.Order', function(ns) { kivi.run_once_for('.row_entry', 'on_kbd_click_show_hide', function(elt) { $(elt).keydown(function(event) { + var row; if (event.keyCode == 40 && event.shiftKey === true) { // shift arrow down event.preventDefault(); - var row = $(event.target).parents(".row_entry").first(); + row = $(event.target).parents(".row_entry").first(); ns.load_second_row(row); ns.show_second_row(row); return false; @@ -295,7 +296,7 @@ namespace('kivi.Order', function(ns) { if (event.keyCode == 38 && event.shiftKey === true) { // shift arrow up event.preventDefault(); - var row = $(event.target).parents(".row_entry").first(); + row = $(event.target).parents(".row_entry").first(); ns.hide_second_row(row); return false; } -- 2.20.1