perazhog (perazhog) wrote in changelog,
perazhog
perazhog
changelog

[livejournal] r21581: LJSUP-11421: Cliend-side development for...

Committer: egeraskin
LJSUP-11421: Cliend-side development for Trava.ru
U   trunk/htdocs/manage/profile/index.bml
Modified: trunk/htdocs/manage/profile/index.bml
===================================================================
--- trunk/htdocs/manage/profile/index.bml	2012-03-29 06:05:14 UTC (rev 21580)
+++ trunk/htdocs/manage/profile/index.bml	2012-03-29 07:20:49 UTC (rev 21581)
@@ -683,7 +683,7 @@
 
         unless ( $LJ::DISABLED{'trava'} ) {
 
-        # Playlist
+        # Playlist 
         my $trava_uid = $u->prop('trava_uid');
 
         if( $trava_uid && $trava_uid > 1 ) {
@@ -697,12 +697,21 @@
             $ret .= "<table class='field_block'>\n";
 
             $ret .= "<tr><td class='field_name'><label for='playlist_id'>$ML{'.fn.playlist_on_trava.ru'}</label></td><td>";
+            $ret .= qq~<div class="music-settings-manage-state-loading">~;
             $ret .= qq~<input type="hidden" name="trava_uid" id="trava_uid" value="$trava_uid"><input type="hidden" name="playlist_id" id="playlist_id" value="$playlist_id" />~;
-            $ret .= qq~<dl class="music-settings-manage-playlist"><dt>~ . $ML{'.pl.selected'}. qq~<span id="playlist_name"> Loading playlist...</span></dt>~;
+            $ret .= qq~<div class="music-settings-manage-playlist music-playlist-loading">~ . $ML{'.pl.selected'}. qq~<span class="music-playlist-action">~ . $ML{'.pl.loading'}. qq~</span>~;
+            $ret .= qq~<span class="music-settings-preloader"></span>~;
+            $ret .= qq~</div>~;
+            $ret .= qq~<dl class="music-settings-manage-playlist music-playlist-loaded"><dt>~ . $ML{'.pl.selected'}. qq~<span id="playlist_name"> </span></dt>~;
             $ret .= qq~<dd>~ . $ML{'.pl.change'}. qq~~;
-            $ret .= "<select id=''>";
+            $ret .= "<select id='music-settings-playlist-selection'>";
             $ret .= "</select>";
             $ret .= "</dd>";
+            $ret .= "</dl>";
+            $ret .= qq~<div class="music-settings-manage-playlist music-playlist-empty"> You dont have any playlist, please go to <a href="http://www.trava.ru" target="_blank">trava</a> and do it )))</div>~;
+            $ret .= qq~<div class="music-settings-manage-playlist music-playlist-login-error"> You need to <a href="http://www.trava.ru" target="_blank">log in</a></div>~;
+            $ret .= qq~<div class="music-settings-manage-playlist music-playlist-system-error"> <span class="music-playlist-action"> Failed to query data, please, <a href="#">try again</a> </span></div>~;
+            $ret .= qq~</div>~;
 		    $ret .= "</td>";
             $ret .= "</table>\n";
         }

Tags: bml, egeraskin, livejournal, perazhog
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