Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

conditions and actions

  • Loading branch information...
commit 32dc61f2e58ea8281283a8dc2f8b64078523b795 1 parent 7cff253
@pmurias authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 public/editor.html
View
12 public/editor.html
@@ -28,7 +28,9 @@
addReaction: function() {
this.reactions.push({
text:[''],
- replies:[]
+ replies:[],
+ action: [''],
+ conditions: ['']
});
}
};
@@ -50,6 +52,8 @@
selected_reaction = 0;
reactions = [
{
+ action: [''],
+ conditions: [''],
text:['Witam','Jesteś tu sam?'],
replies:[
{
@@ -63,6 +67,8 @@
]
},
{
+ action: [''],
+ conditions: [''],
text:['Stój złodzieju'],
replies:[]
}
@@ -74,7 +80,9 @@
<button id="add_reaction" ng:click="addReaction()">Add new reaction</button>
<div ng:controller="ReactionController">
- <span ng:repeat="text in reactions[selected_reaction].text">
+ Conditions: <textarea name='reactions[selected_reaction].conditions[0]'></textarea>
+ Actions: <textarea name='reactions[selected_reaction].action[0]'></textarea>
+ Text: <span ng:repeat="text in reactions[selected_reaction].text">
<textarea name='reactions[selected_reaction].text[$index]'></textarea>
<a href="" ng:click="reactions[selected_reaction].text.splice($index,1)">Remove</a>
</span>
Please sign in to comment.
Something went wrong with that request. Please try again.