cleaned up the code

This commit is contained in:
Kaleb Murphy 2009-04-09 02:32:50 +00:00
parent 35aaf1a954
commit c6860a5d30
2 changed files with 5 additions and 3 deletions

View file

@ -327,7 +327,7 @@ if (typeof Survey === "undefined") {
YAHOO.widget.Chart.SWFURL = "/extras/yui/build/charts/assets/charts.swf";
// Public API
Survey.Form = {
Survey.Summary = {
globalSummaryDataTip: function(item, index, series){
var toolTipText = "hello";
//var toolTipText = series.displayName + " for " + item.section;
@ -441,8 +441,10 @@ if (typeof Survey === "undefined") {
});
YAHOO.util.Event.addListener("submitbutton", "click", function(){ Survey.Comm.submitSummary(); });
},
}
};
Survey.Form = {
displayQuestions: function(params){
toValidate = [];
var qs = params.questions;

View file

@ -55,7 +55,7 @@ if (typeof Survey === "undefined") {
window.location = url;
}
else if(response.type === 'summary'){
Survey.Form.showSummary(response.summary,response.html);
Survey.Summary.showSummary(response.summary,response.html);
}
else {
alert("bad response");