diff --git a/css/player.css b/css/player.css index 11acbda..115ff9f 100644 --- a/css/player.css +++ b/css/player.css @@ -116,6 +116,11 @@ a { margin-top: 12px; } +.searchbox .nav .searchspinner{ + margin-top: 8px; + height: 25px; +} + .searchitem { height: 92px; diff --git a/js/app.js b/js/app.js index 7a738cc..71b2182 100644 --- a/js/app.js +++ b/js/app.js @@ -719,13 +719,16 @@ function($scope, $http, $timeout, angularPlayer, loWeb) { $scope.tab = 0; $scope.keywords = ''; + $scope.loading = false; $scope.changeTab = function(newTab){ + $scope.loading = true; $scope.tab = newTab; $scope.result = []; loWeb.get('/search?source=' + getSourceName($scope.tab) + '&keywords=' + $scope.keywords).success(function(data) { // update the textarea - $scope.result = data.result; + $scope.result = data.result; + $scope.loading = false; }); }; @@ -741,10 +744,12 @@ // if searchStr is still the same.. // go ahead and retrieve the data if (tmpStr === $scope.keywords) - { + { + $scope.loading = true; loWeb.get('/search?source=' + getSourceName($scope.tab) + '&keywords=' + $scope.keywords).success(function(data) { // update the textarea - $scope.result = data.result; + $scope.result = data.result; + $scope.loading = false; }); } }); diff --git a/listen1.html b/listen1.html index 3e43723..88e09aa 100644 --- a/listen1.html +++ b/listen1.html @@ -188,13 +188,14 @@ + -