1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 02:36:36 +00:00

standardize code

This commit is contained in:
Rokt33r
2015-06-10 03:14:44 +09:00
parent 58729b4d56
commit 29430b540b
15 changed files with 146 additions and 146 deletions

View File

@@ -10,18 +10,18 @@ angular.module('codexen')
Snippet.show(snippetId, {
'include': ['Tag']
})
.success(function (data) {
vm.snippet = data
vm.isLoaded = true
})
.success(function (data) {
vm.snippet = data
vm.isLoaded = true
})
// TODO: When deletion occurs, switch the next snippet
// TODO: Add deletion confirmation modal
vm.delete = function () {
Snippet.delete(vm.snippet.id)
.success(function () {
$rootScope.$broadcast('snippetDeleted')
})
.success(function () {
$rootScope.$broadcast('snippetDeleted')
})
}
$scope.$on('snippetUpdated', function (e, snippet) {