mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Try to get form submit (POST) working in FF
This commit is contained in:
parent
e3ef32aa08
commit
39c133fe2e
@ -149,7 +149,7 @@ function nm_action(_action, _senders, _target, _ids)
|
||||
return value;
|
||||
}
|
||||
|
||||
if(_action.data.nm_action == 'popup')
|
||||
if(_action.data.nm_action == 'open_popup')
|
||||
{
|
||||
nextmatch.getInstanceManager().submit();
|
||||
|
||||
|
@ -313,21 +313,19 @@ etemplate2.prototype.postSubmit = function()
|
||||
|
||||
if (canSubmit)
|
||||
{
|
||||
var form = document.createElement("form");
|
||||
form.method = "POST";
|
||||
form.action = egw().webserverUrl +"/json.php?menuaction=etemplate::ajax_process_post";
|
||||
var form = jQuery("<form id='form' action='"+egw().webserverUrl + "/json.php?menuaction=etemplate::ajax_process_post' method='POST'>");
|
||||
|
||||
var etemplate_id = document.createElement("input");
|
||||
etemplate_id.name = 'etemplate_exec_id';
|
||||
etemplate_id.value = this.etemplate_exec_id;
|
||||
form.appendChild(etemplate_id);
|
||||
var etemplate_id = jQuery(document.createElement("input"))
|
||||
.attr("name",'etemplate_exec_id')
|
||||
.val(this.etemplate_exec_id)
|
||||
.appendTo(form);
|
||||
|
||||
var input = document.createElement("input");
|
||||
input.name = 'value';
|
||||
input.value = egw().jsonEncode(values);
|
||||
form.appendChild(input);
|
||||
form.append(input);
|
||||
|
||||
form.submit();
|
||||
form.appendTo(jQuery('body')).submit();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user