X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fclient_js.js;h=4697fa63bf4943124217c57e9981a7e2ce12496f;hb=1bdfacee11393f18563ccd8143a9408f07449ede;hp=35d5e695984927c73c3c3057d0d2a484d172d4f1;hpb=6dbc83af32ca1bded29101903d98d8656113801e;p=kivitendo-erp.git diff --git a/js/client_js.js b/js/client_js.js index 35d5e6959..4697fa63b 100644 --- a/js/client_js.js +++ b/js/client_js.js @@ -96,6 +96,9 @@ ns.eval_json_result = function(data) { // Closing and removing the popup else if (action[0] == 'dialog:close') $(action[1]).dialog('close'); + // ## jQuery Form plugin ## + else if (action[0] == 'ajaxForm') pattern: $(action[1]).ajaxForm({ success: eval_json_result }); + // ## jstree plugin ## // Operations on the whole tree @@ -133,19 +136,6 @@ ns.eval_json_result = function(data) { // console.log("current_content_type " + $('#current_content_type').val() + ' ID ' + $('#current_content_id').val()); }; -ns.submit_ajax_form = function(url, form_selector, additional_data) { - var data = $(form_selector).serialize(); - if (additional_data) { - if (data) - data += '&'; - data += typeof additional_data == "string" ? additional_data : $(additional_data).serialize(); - } - - $.post(url, data, ns.eval_json_result); - - return true; -}; - }); // Local Variables: