]> git.parisson.com Git - telemeta.git/commitdiff
we need a tiny js editor for playlist fields
authoryomguy <yomguy@parisson.com>
Fri, 10 Feb 2012 11:16:53 +0000 (12:16 +0100)
committeryomguy <yomguy@parisson.com>
Fri, 10 Feb 2012 11:16:53 +0000 (12:16 +0100)
telemeta/htdocs/js/playlist.js
telemeta/templates/telemeta/lists.html

index a5ce12d237097105192ac9975b359fae553c6c60..c89f92223d07920eb4a974b234562eef39360d22 100644 (file)
@@ -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){
index fdae2bff3e264a45f84e97246bac638331e0809e..1b550534edf5c2d050046d2fea45f45de71e199c 100644 (file)
@@ -11,7 +11,6 @@
         var a = jQuery('#_new_playlist'); 
         a.unbind('click').click(function(){p.showAdd(a);return false;});
     });
-   
 </script>
 {% endblock %}
 
@@ -33,7 +32,7 @@
 
 <div class="home-description">
     <h1><img src="{% url telemeta-images "playlist_title.png" %}" alt="playlists" style="vertical-align:middle" /> {% trans "Playlists" %}</h1>
-    <a href=# id="_new_playlist" style="float:right" class="component_icon button icon_add">
+    <a href="#" id="_new_playlist" style="float:right" class="component_icon button icon_add">
         {% trans "Add" %}</a>
     {% for playlist in playlists %}
     <table class="listing" style="width:100%;margin-top: 3em">