This commit is contained in:
Fergal Moran
2014-08-13 22:54:58 +01:00
parent dbc5867fbc
commit 17be502cb1
4 changed files with 22 additions and 2 deletions

View File

@@ -67,7 +67,7 @@
true
@listenTo @vent, "mix:delete", (model) ->
console.log "App(vent): mix:like"
console.log "App(vent): mix:delete"
utils.messageBox "/dlg/DeleteMixConfirm"
yes: ->
console.log("Controller: mixDeleteYES!!")

View File

@@ -8,6 +8,7 @@
mixExistsIndicator: ".playlist-selected-indicator"
events:
"click #playlist-delete": "onDeletePlaylist"
"click .profile-activity": "onClickItem"
onClickItem: (e) ->
@@ -28,6 +29,10 @@
@render()
onDeletePlaylist: ->
utils.messageBox "/dlg/DeletePlaylistConfirm", =>
@model.destroy()
setContained: (contained)=>
@ui.mixExistsIndicator.prop('checked', contained)

View File

@@ -10,7 +10,7 @@
<i class="ace-icon fa fa-pencil bigger-130"></i>
</a>
<span class="vbar"></span>
<a href="#" class="red">
<a href="#" class="red" id="playlist-delete">
<i class="ace-icon fa fa-trash-o bigger-130"></i>
</a>
</div>

View File

@@ -0,0 +1,15 @@
{% extends 'views/dlg/_DialogBase.html' %}
{% load account %}
{% load static %}
{% load socialaccount %}
{% block header %}
<h3>You sure about this chief??</h3>
{% endblock %}
{% block content %}
Delete this playlist?
{% endblock %}
{% block primarybutton %}Cancel{% endblock %}
{% block extrabuttons %}
<button type="button" class="btn btn-success" data-dismiss="modal" id="yes-no-positive">Proceed</button>
{% endblock %}