From 04a484b367929f48854b6120229076747726de53 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 30 Jan 2017 13:26:02 +0100 Subject: [PATCH] =?utf8?q?Kontoauszug=20verbuchen:=20aus=20Zuweisung=20ent?= =?utf8?q?fernen=20zeigt=20Rechnung=20wieder=20in=20Vorschl=C3=A4gen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/kivi.BankTransaction.js | 3 ++- templates/webpages/bank_transactions/tabs/all.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/kivi.BankTransaction.js b/js/kivi.BankTransaction.js index 730e07a4b..08f51334c 100644 --- a/js/kivi.BankTransaction.js +++ b/js/kivi.BankTransaction.js @@ -13,7 +13,7 @@ namespace('kivi.BankTransaction', function(ns) { }; ns.add_invoices = function(bank_transaction_id, proposal_id) { - $('[name=' + proposal_id + ']').remove(); + $('[data-proposal-id=' + proposal_id + ']').hide(); $.ajax({ url: 'controller.pl?action=BankTransaction/ajax_payment_suggestion&bt_id=' + bank_transaction_id + '&prop_id=' + proposal_id, @@ -25,6 +25,7 @@ namespace('kivi.BankTransaction', function(ns) { ns.delete_invoice = function(bank_transaction_id, proposal_id) { $( "#" + bank_transaction_id + "\\." + proposal_id ).remove(); + $('[data-proposal-id=' + proposal_id + ']').show(); }; ns.create_invoice = function(bank_transaction_id) { diff --git a/templates/webpages/bank_transactions/tabs/all.html b/templates/webpages/bank_transactions/tabs/all.html index 04287be9a..529b1dc63 100644 --- a/templates/webpages/bank_transactions/tabs/all.html +++ b/templates/webpages/bank_transactions/tabs/all.html @@ -91,7 +91,7 @@ [% END %] [% FOREACH prop = bt.proposals %] -
+
←[% HTML.escape(prop.invnumber)%]
-- 2.20.1