Remove control issue, it wasn't using the right index

This commit is contained in:
antoine
2014-07-01 17:29:20 +02:00
parent 5c24759234
commit aa8f7a9394

View File

@@ -175,7 +175,7 @@
<span ng-if="deletePrompt">
Are you sure?
<a href style="text-decoration: underline" ng-click="removeControl(area, control.$index)">Yes</a>
<a href style="text-decoration: underline" ng-click="removeControl(area, $parent.$index)">Yes</a>
</span>
<i ng-if="!deletePrompt" class="icon icon-trash"></i>