Also confirm deleting view (#1)

pull/54/merge
Candid Dauth 2016-10-31 15:08:47 +03:00
rodzic cae8b16eb4
commit 1358ecfad4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -10,7 +10,7 @@
<td><a href="javascript:" ng-click="display(view)">{{view.name}}</a></td>
<td class="td-buttons">
<button type="button" ng-hide="view.id == padData.defaultView.id" ng-click="makeDefault(view)" class="btn btn-default">Make default</button>
<button type="button" ng-click="delete(view)" class="btn btn-default">Delete</button>
<button type="button" ng-click="confirm('Do you really want to delete the view “' + view.name + '”?') && delete(view)" class="btn btn-default">Delete</button>
</td>
</tr>
</tbody>