Index: telemeta/htdocs/js/playlist.js
===================================================================
--- telemeta/htdocs/js/playlist.js	(revision 461ebfc909493ecc3521594235fdf2f1a2a2d227)
+++ telemeta/htdocs/js/playlist.js	(revision 2329add6be52040cac6ce6409e9ac97585e29b26)
@@ -93,8 +93,9 @@
         return new String(d.getTime() + '' + Math.floor(Math.random() * 1000000)).substr(0, 18);
     },
+
     add : function(dictionary){
 
         if(dictionary.public_id===undefined){
-            dictionary.public_id = this.uniqid(); //defined in application.js
+            dictionary.public_id = this.uniqid();
         }
         if(dictionary.user===undefined){
@@ -106,5 +107,5 @@
         });
     },
-    
+
     remove: function(id){
         json([id],'telemeta.del_playlist',function(){
@@ -131,5 +132,5 @@
         var dd = {};
         var playlist = this;
-        
+
         var playlists = this.playlists;
         for (var i=0; i< playlists.length; i++){
@@ -139,5 +140,5 @@
             }
         }
-        
+
         new PopupDiv({
             'content':dd,
@@ -157,5 +158,5 @@
         }).show();
     },
-    
+
     /*shows the popup for adding a resource to a playlist*/
     showAddResourceToPlaylist: function(anchorElement, resourceType, objectId, optionalOkMessage){
@@ -166,9 +167,9 @@
         }
         var pl = this;
-        
+
         if(!ar.length){
             pl.showAdd(anchorElement);
         }
-        
+
         //var addFcn = this.addResourceToPlaylist;
         new PopupDiv({
@@ -178,5 +179,5 @@
                 var val = data.selIndex;
                 var callbackok = undefined;
-                    
+
                 if(optionalOkMessage){
                     callbackok = function(){
