need to pass cookies to the submission handler, otherwise content is written to the wrong xformsbean.

removing the submit button.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3520 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-08-15 15:28:29 +00:00
parent 6aea4ef3af
commit d385022212
4 changed files with 57 additions and 13 deletions

View File

@@ -9,6 +9,30 @@ dojo.require("dojo.html.style");
dojo.hostenv.writeIncludes();
dojo.addOnLoad(xforms_init);
//dojo.provide("alfresco.xforms.textarea");
//
//dojo.declare("alfresco.xforms.Widget",
// null,
// function(node)
// {
// this.node = node;
// },
// id: "",
// isRequired: function()
// {
// },
// getInitialValue: function()
// {
// });
//
//dojo.declae("alfresco.xforms.TextArea",
// alfresco.xforms.Widget,
// function() { },
//
//{
// alert(element);
//}
var bindings = {};
var xform = null;
function xforms_init()
@@ -93,6 +117,7 @@ function load_body(body, ui_element_stack)
ui_element_stack.pop();
break;
case "xforms:textarea":
// new alfresco.xforms.textarea(o);
var row = document.createElement("tr");
ui_element_stack[ui_element_stack.length - 1].appendChild(row);
@@ -340,6 +365,9 @@ function load_body(body, ui_element_stack)
caption: "submit"
},
nodeRef);
w.hide();
document.submitTrigger = w;
document.submitTrigger.done = false;
w.onClick = function()
{
fireAction(w.widgetId);
@@ -449,7 +477,8 @@ function fireAction(id)
mimetype: "text/xml",
load: function(type, data, evt)
{
// alert("fired action " + id);
document.submitTrigger.done = true;
doSubmit();
},
error: function(type, e)
{