From de295326f318116756dba26a38d6e483f407f37f Mon Sep 17 00:00:00 2001 From: yomguy Date: Fri, 10 Feb 2012 12:16:53 +0100 Subject: [PATCH] we need a tiny js editor for playlist fields --- telemeta/htdocs/js/playlist.js | 4 ++-- telemeta/templates/telemeta/lists.html | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/telemeta/htdocs/js/playlist.js b/telemeta/htdocs/js/playlist.js index a5ce12d2..c89f9222 100644 --- a/telemeta/htdocs/js/playlist.js +++ b/telemeta/htdocs/js/playlist.js @@ -97,9 +97,8 @@ var playlistUtils = { json([dictionary],'telemeta.add_playlist',function(){ window.location.reload(); }); - - }, + remove: function(id){ json([id],'telemeta.del_playlist',function(){ window.location.reload(); @@ -112,6 +111,7 @@ var playlistUtils = { }); }, +// TODO: add edit fonction /*shows the popup for adding a resource to a playlist*/ showAddResourceToPlaylist: function(anchorElement,resourceType,objectId, optionalOkMessage){ diff --git a/telemeta/templates/telemeta/lists.html b/telemeta/templates/telemeta/lists.html index fdae2bff..1b550534 100644 --- a/telemeta/templates/telemeta/lists.html +++ b/telemeta/templates/telemeta/lists.html @@ -11,7 +11,6 @@ var a = jQuery('#_new_playlist'); a.unbind('click').click(function(){p.showAdd(a);return false;}); }); - {% endblock %} @@ -33,7 +32,7 @@

playlists {% trans "Playlists" %}

- + {% trans "Add" %} {% for playlist in playlists %} -- 2.39.5