Editor is done except for prettifying it, but you can now build a survey with the new data layer

This commit is contained in:
Kaleb Murphy 2008-09-30 19:25:38 +00:00
parent 9c5082f450
commit 2de1d83d65
4 changed files with 73 additions and 62 deletions

View file

@ -56,16 +56,19 @@ console.log('adding handler for '+ d.ids[x]);
}
//add the add object buttons
if(d.buttons['section']){
var button = new YAHOO.widget.Button({ label:"Add Section", id:"addsection", container:"newSection" });
// if(d.buttons['section']){
document.getElementById('addSection').innerHTML = '';
document.getElementById('addQuestion').innerHTML = '';
document.getElementById('addAnswer').innerHTML = '';
var button = new YAHOO.widget.Button({ label:"Add Section", id:"addsection", container:"addSection" });
button.on("click", this.addSection);
}
if(d.buttons['question']){
var button = new YAHOO.widget.Button({ label:"Add Question", id:"addquestion", container:"newQuestion" });
// }
// if(d.buttons['question']){
var button = new YAHOO.widget.Button({ label:"Add Question", id:"addquestion", container:"addQuestion" });
button.on("click", this.addQuestion,d.buttons['question']);
}
// }
if(d.buttons['answer']){
var button = new YAHOO.widget.Button({ label:"Add Answer", id:"addanswer", container:"newAnswer" });
var button = new YAHOO.widget.Button({ label:"Add Answer", id:"addanswer", container:"addAnswer" });
button.on("click", this.addAnswer,d.buttons['answer']);
}

View file

@ -46,7 +46,7 @@ div.entry {
ul.draglist {
position: relative;
width: 300px;
width: 340px;
background: #f7f7f7;
border: 1px solid gray;
list-style: none;