Permalink
Browse files

Goto

  • Loading branch information...
1 parent fecd068 commit f1b041b673bfe2d91f971187c3b754ab490ab264 @pmurias committed Jan 27, 2011
Showing with 7 additions and 1 deletion.
  1. +3 −1 public/editor.html
  2. +4 −0 public/editor.js
View
@@ -34,6 +34,7 @@
<option ng:repeat='possibleReaction in dialogue().reactions' value="{{$index}}">{{possibleReaction|label}}</option>
</select>
<a href="" ng:click="dialogue().root_reactions.splice($index,1)">Remove</a>
+ <a href="" ng:click="selectReaction(dialogue().root_reactions[$index]);">Goto</a>
</div>
<a href="" ng:click="addRootReaction()">Add</a>
</div>
@@ -97,9 +98,10 @@
<option ng:repeat='possibleReaction in dialogue().reactions' value="{{$index}}">{{possibleReaction|label}}</option>
</select>
<a href="" ng:click="reply.reactions.splice($index,1)">Remove</a>
+ <a href="" ng:click="selectReaction(reaction);">Goto</a>
</div>
</div>
- <a href="" ng:click="addReaction()">Add</a>
+ <a href="" ng:click="addReaction(reply.reactions[$index])">Add</a>
</div>
View
@@ -156,6 +156,10 @@ DialoguesController.prototype = {
save: function() {
console.debug(this.dialogues);
this.res.save({dialogues:this.dialogues});
+ },
+ selectReaction: function(index) {
+ scroll(0,0);
+ this.selected_reaction = index;
}
}

0 comments on commit f1b041b

Please sign in to comment.