can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r11669: LJSUP-11721: Cannot reset PlayList in pr...

Committer: dpetrov
LJSUP-11721: Cannot reset PlayList in profile
U   trunk/htdocs/js/editprofile.js
Modified: trunk/htdocs/js/editprofile.js
===================================================================
--- trunk/htdocs/js/editprofile.js	2012-04-04 13:42:24 UTC (rev 11668)
+++ trunk/htdocs/js/editprofile.js	2012-04-05 08:58:03 UTC (rev 11669)
@@ -405,11 +405,16 @@
 					var length = playlists.length;
 					var index = 0;
 					var playlist;
+					var currentPlaylist = playlistID.val();
 
 					select.empty();
 					while (index < length) {
 						playlist = playlists[index++];
 						select.append('<option value="' + playlist.id + '">' + playlist.title + '</option>');
+
+						if (currentPlaylist === playlist.id) {
+							playlistName.text(playlist.title);
+						}
 					}
 
 					jQuery(this).addClass(state.loaded);
@@ -417,7 +422,8 @@
 					jQuery(this).addClass(state.error);
 				}
 			}).trava({
-				uid: uid
+				uid: uid,
+				searchControl: false
 			}).trava('getPlaylists');
 
 		jQuery('#music-settings-playlist-confirm').bind('click', function (evt) {
@@ -433,4 +439,4 @@
 			element.removeClass(state.error).addClass(state.loading).trava('getPlaylists');
 		});
 	});
-});
\ No newline at end of file
+});

Tags: can3p, dpetrov, js, ljcom
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments