tag deletion
This commit is contained in:
@@ -73,8 +73,9 @@ angular.module('app.frontend')
|
||||
$scope.notesRemoveTag = function(tag) {
|
||||
var validNotes = Note.filterDummyNotes(tag.notes);
|
||||
if(validNotes == 0) {
|
||||
modelManager.deleteTag(tag);
|
||||
// if no more notes, delete tag
|
||||
apiController.deleteItem($scope.defaultUser, tag, function(){
|
||||
apiController.deleteItem(tag, function(){
|
||||
// force scope tags to update on sub directives
|
||||
$scope.tags = [];
|
||||
$timeout(function(){
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
font-size: 12px;
|
||||
text-transform: none;
|
||||
font-weight: normal;
|
||||
margin-top: -18px;
|
||||
margin-top: 4px;
|
||||
width: 120px;
|
||||
text-align: right;
|
||||
color: rgba(black, 0.5);
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
$tags-selected-color: #bdbdbd;
|
||||
$tags-selected-color: #dbdbdb;
|
||||
|
||||
&.selected {
|
||||
background-color: $tags-selected-color;
|
||||
|
||||
Reference in New Issue
Block a user