You can now copy sections and questions. And if I correctly understand how to bundle asset packages, all the new template changes are included.

This commit is contained in:
Kaleb Murphy 2008-10-20 16:17:25 +00:00
parent 5b8a1df90e
commit 5afae6de85
4 changed files with 50 additions and 3 deletions

View file

@ -8,8 +8,11 @@ Survey.ObjectTemplate = new function(){
document.getElementById('edit').innerHTML = html;
var butts = [ { text:"Submit", handler:function(){this.submit();}, isDefault:true }, { text:"Cancel", handler:function(){this.cancel();}},
{text:"Delete", handler:function(){document.getElementById('delete').value = 1; this.submit();}}
var butts = [
{ text:"Submit", handler:function(){this.submit();}, isDefault:true },
{ text:"Copy", handler:function(){document.getElementById('copy').value = 1; this.submit();}},
{ text:"Cancel", handler:function(){this.cancel();}},
{ text:"Delete", handler:function(){document.getElementById('delete').value = 1; this.submit();}}
];
var form = new YAHOO.widget.Dialog(type,