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:
Ralf Becker 2016-05-14 12:38:31 +02:00
parent 4b0bc10900
commit 5be1075f26
3 changed files with 2 additions and 2 deletions

View File

@ -653,7 +653,7 @@ etemplate2.prototype.autocomplete_fixer = function ()
// Safari shows same warning, thought Chrome userAgent also includes Safari // Safari shows same warning, thought Chrome userAgent also includes Safari
if (navigator.userAgent.match(/(firefox|safari|iceweasel)/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'}); jQuery(form).attr({action: egw.webserverUrl+'/api/templates/default/empty.html',method:'post'});
} }
// need to trigger submit because submit() would not trigger onsubmit event // need to trigger submit because submit() would not trigger onsubmit event
// since the submit does not get fired directly via user interaction. // since the submit does not get fired directly via user interaction.

View File

@ -224,7 +224,7 @@ class Etemplate extends Etemplate\Widget\Template
$form_action = "about:blank"; $form_action = "about:blank";
if (in_array(Header\UserAgent::type(), array('firefox', 'safari'))) 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) // check if we are in an ajax-exec call from jdots template (or future other tabbed templates)
if (isset($GLOBALS['egw']->framework->response)) if (isset($GLOBALS['egw']->framework->response))