Try to get form submit (POST) working in FF

This commit is contained in:
Nathan Gray 2012-04-23 20:25:21 +00:00
parent e3ef32aa08
commit 39c133fe2e
2 changed files with 8 additions and 10 deletions

View File

@ -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();

View File

@ -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();
}
}