From ebab506aa9c1435096b239eb8cc7988afc40fd69 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 26 Jan 2015 16:13:08 +0000 Subject: [PATCH] * All Applications: Get browser autocomplete form working --- etemplate/inc/class.etemplate_new.inc.php | 3 ++- etemplate/js/etemplate2.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_new.inc.php b/etemplate/inc/class.etemplate_new.inc.php index 74e08e3ddd..36cb9a1133 100644 --- a/etemplate/inc/class.etemplate_new.inc.php +++ b/etemplate/inc/class.etemplate_new.inc.php @@ -225,7 +225,8 @@ class etemplate_new extends etemplate_widget_template { $load_array['response'] = egw_json_response::get()->returnResult(); } - echo '
'; + //
'; if ($output_mode == 2) { diff --git a/etemplate/js/etemplate2.js b/etemplate/js/etemplate2.js index 9f1c49ce09..c6040c338a 100644 --- a/etemplate/js/etemplate2.js +++ b/etemplate/js/etemplate2.js @@ -657,6 +657,11 @@ etemplate2.prototype.submit = function(button, async, no_validation) var api = this.widgetContainer.egw(); var request = api.json(this.menuaction, [this.etemplate_exec_id, values, no_validation], null, this, async); request.sendRequest(); + + // Submit the template to an empty iframe (egw_iframe_autocomplete_helper) + // in order to get default browser autocomplete working + // maybe later we find better solution then we can remove this part + jQuery("form#egw_form_autocomplete_helper").submit(); } else {