X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fclient_js.js;h=6d898199088da375094c449c4e680ddc48867c95;hb=e63bbc9fa291b69315dec89dd51e7ef18a2e0448;hp=bd70c892f0e1867b6ab4206c25d46ab87f3fbc24;hpb=766f5705ecb9cd56adfbffd94c871959bb64c6fd;p=kivitendo-erp.git diff --git a/js/client_js.js b/js/client_js.js index bd70c892f..6d8981990 100644 --- a/js/client_js.js +++ b/js/client_js.js @@ -89,7 +89,8 @@ ns.eval_json_result = function(data) { // ## jQuery UI dialog plugin ## - // Closing and removing the popup + // Opening and closing and closing a popup + else if (action[0] == 'dialog:open') kivi.popup_dialog(action[1]); else if (action[0] == 'dialog:close') $(action[1]).dialog('close'); // ## jQuery Form plugin ## @@ -130,6 +131,7 @@ ns.eval_json_result = function(data) { else if (action[0] == 'reinit_widgets') kivi.reinit_widgets(); else if (action[0] == 'run') kivi.run(action[1], action.slice(2, action.length)); else if (action[0] == 'run_once_for') kivi.run_once_for(action[1], action[2], action[3]); + else if (action[0] == 'scroll_into_view') $(action[1])[0].scrollIntoView(); else console.log('Unknown action: ' + action[0]);