X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/551d4b787115605d6b12ef199ea52ac6a5a2ad0c..5384e5cb7568d04e61bb5c712d7953df046f3a2c:/js/kivi.js diff --git a/js/kivi.js b/js/kivi.js index 469d889d3..5ae742c38 100644 --- a/js/kivi.js +++ b/js/kivi.js @@ -127,6 +127,11 @@ namespace("kivi", function(ns) { kivi.PartPicker($(elt)); }); + if (ns.CustomerVendorPicker) + ns.run_once_for('input.customer_vendor_autocomplete', 'customer_vendor_picker', function(elt) { + kivi.CustomerVendorPicker($(elt)); + }); + var func = kivi.get_function_by_name('local_reinit_widgets'); if (func) func(); @@ -190,7 +195,12 @@ namespace("kivi", function(ns) { if (!params.url) { // Use existing DOM element and show it. No AJAX call. - dialog = $('#' + id).dialog(dialog_params); + dialog = + $('#' + id) + .bind('dialogopen', function() { + ns.run_once_for('.texteditor-in-dialog,.texteditor-dialog', 'texteditor', kivi.init_text_editor); + }) + .dialog(dialog_params); return true; }