X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/196da0e775a9bf7b33e87c2027d7993f4cbc9f34..2f5ea2de698efeaf8e7c31dcbc27b4e996f5e2ca:/js/kivi.ShopPart.js?ds=inline diff --git a/js/kivi.ShopPart.js b/js/kivi.ShopPart.js index 64a1e46d7..0d62fd6b3 100644 --- a/js/kivi.ShopPart.js +++ b/js/kivi.ShopPart.js @@ -140,8 +140,34 @@ namespace('kivi.ShopPart', function(ns) { id: 'files_upload', dialog: { title: kivi.t8('File upload'), width: 650, height: 240 } }); return true; - } + }; + + ns.get_shop_parts_one = function() { + + var data = $('#get_one_shop_part_form').serializeArray(); + data.push({ name: 'type', value: 'get_one'}); + data.push({ name: 'action', value: 'ShopPart/get_shop_parts' }); + + $.post("controller.pl", data, kivi.eval_json_result); + }; + + ns.get_shop_parts_new = function() { + $.post("controller.pl", { action: 'ShopPart/get_shop_parts', type: 'get_new'}, kivi.eval_json_result); + }; + ns.get_shop_order_one_initialize = function() { + kivi.popup_dialog({ + id: 'get_one', + dialog: { + title: kivi.t8('Get one shoppart'), + } + }); + }; + + ns.get_shop_parts_one_setup = function() { + kivi.ShopPart.get_shop_order_one_initialize(); + //kivi.submit_ajax_form('controller.pl?action=ShopOrder/get_orders', $('#shoporder')); + }; ns.setup = function() { kivi.ShopPart.massUploadInitialize();