X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/1ac7b3f25a266f5d58cdac7652bed37344c6e3b2..ad635c66023bc107d55b2f2f41f6fcadabd02cc3:/js/kivi.GL.js?ds=inline diff --git a/js/kivi.GL.js b/js/kivi.GL.js new file mode 100644 index 000000000..833d9283e --- /dev/null +++ b/js/kivi.GL.js @@ -0,0 +1,30 @@ +namespace('kivi.GL', function(ns) { + "use strict"; + + this.show_chart_balance = function(obj) { + var row = $(obj).attr('name').replace(/.*_/, ''); + + $.ajax({ + url: 'gl.pl?action=get_chart_balance', + data: { accno_id: $(obj).val() }, + dataType: 'html', + success: function (new_html) { + $('#chart_balance_' + row).html(new_html); + } + }); + }; + + this.update_taxes = function(obj) { + var row = $(obj).attr('name').replace(/.*_/, ''); + + $.ajax({ + url: 'gl.pl?action=get_tax_dropdown', + data: { accno_id: $(obj).val(), + transdate: $('#transdate').val() }, + dataType: 'html', + success: function (new_html) { + $("#taxchart_" + row).html(new_html); + } + }); + }; +});