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 authored and pardo-bsso committed Apr 1, 2013
1 parent 40abffb commit 1b3c9b7
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 @@ -95,6 +95,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 @@ -38,6 +38,7 @@ case type
.well#media-list
- if (!fixed)
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 1b3c9b7

Please sign in to comment.