Consider iceweasel browser in autocomplete_fix handling

This commit is contained in:
Hadi Nategh 2015-03-31 12:30:43 +00:00
parent 69fe18d1e0
commit 467578d34f
2 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ class etemplate_new extends etemplate_widget_template
// set action attribute for autocomplete form tag
// as firefox complains on about:balnk action, thus we have to literaly submit the form to a blank html
$form_action = "about:blank";
if (html::$user_agent == 'firefox') $form_action = $GLOBALS['egw_info']['server']['webserver_url'].'/etemplate/empty.html';
if (html::$user_agent == 'firefox' || html::$user_agent =='iceweasel') $form_action = $GLOBALS['egw_info']['server']['webserver_url'].'/etemplate/empty.html';
// check if we are in an ajax-exec call from jdots template (or future other tabbed templates)
if (isset($GLOBALS['egw']->framework->response))

View File

@ -602,7 +602,7 @@ etemplate2.prototype.autocomplete_fixer = function ()
// Firefox give a security warning when transmitting to "about:blank" from a https site
// we work around that by giving existing etemplate/empty.html url
// Safari shows same warning, thought Chrome userAgent also includes Safari
if (navigator.userAgent.match(/(firefox|safari)/i) && !navigator.userAgent.match(/chrome/i))
if (navigator.userAgent.match(/(firefox|safari|iceweasel)/i) && !navigator.userAgent.match(/chrome/i))
{
jQuery(form).attr({action: egw.webserverUrl+'/etemplate/empty.html',method:'post'});
}