Implemented Survey Jump-to combo box (#9202)
You will need to manually import survey_rfe_9202 until this branch is merged back into trunk.
This commit is contained in:
parent
7a42b4b241
commit
4fe81a69f6
4 changed files with 18 additions and 3 deletions
|
|
@ -77,11 +77,17 @@ YAHOO.log('adding handler for '+ d.ids[x]);
|
|||
// }
|
||||
if(d.buttons['answer']){
|
||||
var button = new YAHOO.widget.Button({ label:"Add Answer", id:"addanswer", container:"addAnswer" });
|
||||
button.on("click", this.addAnswer,d.buttons['answer']);
|
||||
button.on("click", this.addAnswer,d.buttons['answer']);
|
||||
}
|
||||
|
||||
if(showEdit == 1){
|
||||
this.loadObjectEdit(d.edithtml,d.type);
|
||||
|
||||
// build the goto auto-complete widget
|
||||
if (d.gotoTargets && document.getElementById('goto')) {
|
||||
var ds = new YAHOO.util.LocalDataSource(d.gotoTargets);
|
||||
var ac = new YAHOO.widget.AutoComplete('goto', 'goto-yui-ac-container', ds);
|
||||
}
|
||||
}else{
|
||||
document.getElementById('edit').innerHTML = "";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,4 +129,7 @@ li.newAnswer {
|
|||
padding-left:50px;
|
||||
# cursor: move;
|
||||
}
|
||||
|
||||
#goto-yui-ac {
|
||||
width:15em;
|
||||
margin-top:0.5em;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue