mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Consider iceweasel browser in autocomplete_fix handling
This commit is contained in:
parent
69fe18d1e0
commit
467578d34f
@ -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))
|
||||
|
@ -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'});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user