X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5f68c97560deb16f78ab3331e13e692981bc2c1e..69df38d39da1a1fcbf59ebc8f3ddd29a1f82ec29:/js/common.js diff --git a/js/common.js b/js/common.js index e40b9abfe..8e3e5a120 100644 --- a/js/common.js +++ b/js/common.js @@ -160,6 +160,31 @@ function focus_by_name(name){ return false; } +function open_jqm_window(params) { + params = params || { }; + var id = params.id ? params.id : 'jqm_popup_dialog'; + + $('#' + id).remove(); + var div = $('
').hide().appendTo('body'); + var close = $('').appendTo(div); + var content = $('').appendTo(div); + + div.jqm({ modal: true }); + div.jqmShow(); + $(close).click(function() { + div.jqmClose(); + }); + + $.ajax({ + url: params.url, + data: params.data, + type: params.type, + success: function(new_html) { $(content).html(new_html); } + }); + + return true; +} + $(document).ready(function () { // initialize all jQuery UI tab elements: $(".tabwidget").each(function(idx, element) { $(element).tabs(); });