Commits

Anonymous committed dee310b

music queries remove/trim off white space on ends

  • Participants
  • Parent commits a8ab4f5

Comments (0)

Files changed (1)

File sfgeek/apps/s3songs/templates/s3songs/search.html

             // hide content, show spinner
             $('.page-content').hide();
             console.log( "ready!" );
+
             // do restful call to retrieve song list
             $.get("/static/music.json", function( data ) {
               song_dict =  data ;
                 // hide content, show spinner
                 $('.please-wait').show();
                 $("#music-search-result-list ul").empty();
-                query =  $("#music-search-form input[name=music-query]").val( );
+                query =  $("#music-search-form input[name=music-query]").val().trim();
                 if(query.length < 3)
                 {
                     $("#music-search-result-list ul").append('<li><a href="#"><span class="tab">need more characters</span></a></li>');