mirror of
https://github.com/fergalmoran/dss.git
synced 2026-02-09 01:23:57 +00:00
Closes #11
This commit is contained in:
@@ -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!!")
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
15
templates/views/dlg/DeletePlaylistConfirm.html
Normal file
15
templates/views/dlg/DeletePlaylistConfirm.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user