From: Bernd Bleßmann Date: Fri, 10 Aug 2018 10:47:52 +0000 (+0200) Subject: Auftrags-Controller: kivi.Order.js: Variable row nicht redeklarieren. X-Git-Tag: release-3.5.4~332 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=37acd860d7d5a25f11601533aa6dddb7fc6f88d2;p=kivitendo-erp.git Auftrags-Controller: kivi.Order.js: Variable row nicht redeklarieren. --- 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; }