mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
using tinymce as the wysywg editor.
making next and finish buttons behave the same. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3592 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -56,26 +56,28 @@ 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();
|
||||
}
|
||||
}
|
||||
addSubmitHandlerToButton(document.getElementById("wizard:next-button"));
|
||||
addSubmitHandlerToButton(document.getElementById("wizard:finish-button"));
|
||||
});
|
||||
function doSubmit()
|
||||
{
|
||||
var b = document.getElementById("wizard:next-button");
|
||||
b.click();
|
||||
}
|
||||
//
|
||||
//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