This commit is contained in:
Jon Lambson 2017-10-02 09:42:30 -06:00
parent 58537e1d16
commit d9056b2cb7
2 changed files with 2 additions and 1 deletions

View File

@ -346,6 +346,7 @@ app.controller('websiteCtrl', [
});
};
vm.Sites.remove = function (r, opts) {
debugger;
if (!window.confirm("Delete files for this site?")) {
return;
}

View File

@ -16,7 +16,7 @@
</ul>
<ul class="tree files-only ls-none">
<li ng-repeat="file in vm.siteFiles track by $index">
<span class="tree_label filez">{{ file }}</span><span class="pull-right"><button type="button" class="btn btn-danger btn-xs"><i class="fa fa-trash"></i></button></span>
<span class="tree_label filez">{{ file }}</span><span class="pull-right"><button type="button" class="btn btn-danger btn-xs" ng-click="vm.Sites.remove(file)" data="{{ file }}"><i class="fa fa-trash"></i></button></span>
</li>
<li class="move-back">
<a ng-click="vm.showUploadContainer = true;"><i class="fa fa-plus"></i> Add Files</a>