mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
move empty.html used for autocomplete to api/templates/default/, as $app/src/ will not be available for direct requests
This commit is contained in:
parent
4b0bc10900
commit
5be1075f26
@ -653,7 +653,7 @@ etemplate2.prototype.autocomplete_fixer = function ()
|
||||
// Safari shows same warning, thought Chrome userAgent also includes Safari
|
||||
if (navigator.userAgent.match(/(firefox|safari|iceweasel)/i) && !navigator.userAgent.match(/chrome/i))
|
||||
{
|
||||
jQuery(form).attr({action: egw.webserverUrl+'/etemplate/empty.html',method:'post'});
|
||||
jQuery(form).attr({action: egw.webserverUrl+'/api/templates/default/empty.html',method:'post'});
|
||||
}
|
||||
// need to trigger submit because submit() would not trigger onsubmit event
|
||||
// since the submit does not get fired directly via user interaction.
|
||||
|
@ -224,7 +224,7 @@ class Etemplate extends Etemplate\Widget\Template
|
||||
$form_action = "about:blank";
|
||||
if (in_array(Header\UserAgent::type(), array('firefox', 'safari')))
|
||||
{
|
||||
$form_action = $GLOBALS['egw_info']['server']['webserver_url'].'/api/src/Etemplate/empty.html';
|
||||
$form_action = $GLOBALS['egw_info']['server']['webserver_url'].'/api/templates/default/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))
|
||||
|
Loading…
Reference in New Issue
Block a user