client/app/annotationclient.html
changeset 10 90918426079c
parent 9 ae8a74bd6add
child 11 c0f9f9ab2a8a
--- a/client/app/annotationclient.html	Fri Oct 10 12:03:01 2014 +0200
+++ b/client/app/annotationclient.html	Fri Oct 10 14:59:09 2014 +0200
@@ -33,7 +33,7 @@
               </div>
           </div>
         </div>
-        <div class="mons-button hand send" ng-click="sendAnnotation(yourchoice)">
+        <div class="mons-button hand send" id="sendButton" ng-click="sendAnnotation(yourchoice)" ng-class="{'success-border':sendBtnSuccess}">
           <div class="content">
               <div class="table">
                 <div class="table-cell">
@@ -46,7 +46,8 @@
     </div>
     <div class="mons-content">
       <div ng-show="!selectedlevel">
-          <div class="mons-button hand" ng-repeat="c in data.categories" style="background-color: {{ '{{' }} c.color {{ '}}' }}" ng-click="selectLevel($index, c.event_code)">
+          <div class="mons-button hand" ng-repeat="c in data.categories" style="background-color: {{ '{{' }} c.color {{ '}}' }}" 
+                                        ng-click="selectLevel(c.event_code, c)" ng-class="{'success-border':c.sendSuccess}">
             <div class="content">
                 <div class="table">
                   <div class="table-cell">
@@ -58,7 +59,8 @@
           </div>
       </div>
       <div ng-show="selectedlevel">
-          <div class="mons-button hand" ng-repeat="c in selectedlevel" style="background-color: {{ '{{' }} c.color {{ '}}' }}" ng-click="sendAnnotation(c.event_code)">
+          <div class="mons-button hand" ng-repeat="c in selectedlevel" style="background-color: {{ '{{' }} c.color {{ '}}' }}" 
+                                        ng-click="sendAnnotation(c.event_code, c)" ng-class="{'success-border':c.sendSuccess}">
             <div class="content">
                 <div class="table">
                   <div class="table-cell">