Survey 2.0 - "Cancel" button not working as expected (#9217)

added call to 'loadSurvey' after 'cancel'
also added code in 'loadSurvey' to allow for a refresh without
displaying an edit window.
This commit is contained in:
David Delikat 2008-12-19 16:11:03 +00:00
parent eeef2fb330
commit d0b8dd17bc
3 changed files with 11 additions and 3 deletions

View file

@ -11,7 +11,7 @@ Survey.ObjectTemplate = new function(){
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:"Cancel", handler:function(){this.cancel(); Survey.Comm.loadSurvey('-');}},
{ text:"Delete", handler:function(){document.getElementById('delete').value = 1; this.submit();}}
];