X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fkivi.CustomerVendor.js;h=4b4aa3f50975c4c866a4287a8c82e00efce17956;hb=e31590f5a1da3970eec81d55888858cfe373890c;hp=67820bea511b7d668b2609c26a920585108183e4;hpb=656902356dbfe87a8f1992c0119be3912cc59eed;p=kivitendo-erp.git diff --git a/js/kivi.CustomerVendor.js b/js/kivi.CustomerVendor.js index 67820bea5..4b4aa3f50 100644 --- a/js/kivi.CustomerVendor.js +++ b/js/kivi.CustomerVendor.js @@ -215,6 +215,22 @@ namespace('kivi.CustomerVendor', function(ns) { return true; }; + + this.inline_report = function(target, source, data){ + $.ajax({ + url: source, + success: function (rsp) { + $(target).html(rsp); + $(target).find('.paginate').find('a').click(function(event){ ns.redirect_event(event, target) }); + $(target).find('a.report-generator-header-link').click(function(event){ ns.redirect_event(event, target) }); + }, + data: data, + }); + }; + this.redirect_event = function(event, target){ + event.preventDefault(); + ns.inline_report(target, event.target + '', {}); + }; }); function local_reinit_widgets() {