mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -51,3 +51,29 @@ final InstanceData instanceData = new InstanceData() {
|
||||
};
|
||||
tim.generate(instanceData, tt, out);
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
dojo.addOnLoad(function()
|
||||
{
|
||||
//alert('foo');
|
||||
var b = document.getElementById("wizard:next-button");
|
||||
var baseOnClick = b.onclick;
|
||||
b.onclick = function()
|
||||
{
|
||||
if (!document.submitTrigger.done)
|
||||
{
|
||||
document.submitTrigger.buttonClick();
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return baseOnClick();
|
||||
}
|
||||
}
|
||||
});
|
||||
function doSubmit()
|
||||
{
|
||||
var b = document.getElementById("wizard:next-button");
|
||||
b.click();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user