cleaned up the code
This commit is contained in:
parent
35aaf1a954
commit
c6860a5d30
2 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue