Skip to content

Commit

Permalink
Adding trash support to remove from playslist #37
Browse files Browse the repository at this point in the history
Signed-off-by: José Luis Di Biase <[email protected]>
  • Loading branch information
josx committed Apr 1, 2013
1 parent 6dcc9d1 commit 85fd2e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/js/views/medialist.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ window.MediaListView2 = function(options){
self.collection.remove(item);
}

this.trash = ko.observable('');
this.trash.id = "trash";

this.filter = ko.observable('');
this.collection = kb.collectionObservable( model.get('collection'), {
view_model: kb.ViewModel,
Expand Down
1 change: 1 addition & 0 deletions views/templates/medialist.jade
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ block content
.well#media-list
- if (is_playlist)
button.close.kill-media-list(type='button', data-dismiss='alert') ×
.trash(data-bind="sortable: trash",style="width:100px; min-height:50px; background-color: #000;float:right;")

.editable-list-name(
data-trigger= 'hover'
Expand Down

0 comments on commit 85fd2e4

Please sign in to comment.