Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

able to multiselect for search result #102

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
polish code for multiselection
  • Loading branch information
Emery committed Jul 31, 2017
commit c7d2be4fcf1c14b8f99df27061c522297d8be17b
1 change: 0 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
@@ -252,7 +252,6 @@
$scope.closeDialog();
// add to current playing list
if (option_id == $scope.current_list_id) {
console.log('添加到歌单成功', $scope.dialog_song);
if (Array.isArray($scope.dialog_song)) {
angularPlayer.addTrackArray($scope.dialog_song);
} else {
1 change: 0 additions & 1 deletion js/myplaylist.js
Original file line number Diff line number Diff line change
@@ -74,7 +74,6 @@ var myplaylist = (function () {
}

var add_myplaylist = function (playlist_id, track) {
console.log('add_myplaylist track ', track);
var playlist = localStorage.getObject(playlist_id);
if (playlist == null) {
return;
14 changes: 1 addition & 13 deletions listen1.html
Original file line number Diff line number Diff line change
@@ -42,7 +42,6 @@
</head>

<body ng-controller="NavigationController">

<!-- dialog -->
<div class="shadow" ng-hide="is_dialog_hidden==1"></div>
<div class="dialog" ng-hide="is_dialog_hidden==1" ng-style="myStyle">
@@ -115,7 +114,6 @@ <h2> {{ playlist.info.title }} </h2>

</div>
</div>

<!-- page header -->
<div class="masthead clearfix">
<div class="inner">
@@ -131,8 +129,6 @@ <h3 class="masthead-brand" ng-click="showTag(2)">Listen 1</h3>
</nav>
</div>
</div>


<!-- content page: 我的歌单 -->
<div class="site-wrapper" ng-show="current_tag==1" ng-controller="MyPlayListController">
<div class="site-wrapper-innerd" resize>
@@ -157,8 +153,6 @@ <h3 class="masthead-brand" ng-click="showTag(2)">Listen 1</h3>
</div>
</div>
</div>


<!-- content page: 精选歌单 -->
<div class="site-wrapper" ng-show="current_tag==2" ng-controller="PlayListController" ng-init="loadPlaylist();">
<div class="cover-container container-placeholder">
@@ -193,8 +187,6 @@ <h3 class="masthead-brand" ng-click="showTag(2)">Listen 1</h3>
</div>
</div>
</div>


<!-- content page: 快速搜索 -->
<div class="site-wrapper" ng-show="current_tag==3">
<div class="site-wrapper-innerd" resize>
@@ -215,7 +207,7 @@ <h3 class="masthead-brand" ng-click="showTag(2)">Listen 1</h3>
</div>
</ul>
<ul class="detail-songlist">
<li ng-repeat="song in result" ng-class-odd="'odd'" ng-class-even="'even'" ng-mouseenter="options=true" ng-mouseleave="options=false">
<li ng-repeat="song in result" ng-click="song.checked=!song.checked;onMultiSelect();" ng-class-odd="'odd'" ng-class-even="'even'" ng-mouseenter="options=true" ng-mouseleave="options=false">
<div style="position:absolute;" ng-show="song.checked || options">
<input type="checkbox" ng-model="song.checked" ng-change="onMultiSelect()" style="cursor:pointer;">
</div>
@@ -236,8 +228,6 @@ <h3 class="masthead-brand" ng-click="showTag(2)">Listen 1</h3>
</div>
</div>
</div>


<!-- content page: 设置 -->
<div class="site-wrapper" ng-show="current_tag==4" ng-init="lastfm.updateStatus()">
<div class="site-wrapper-innerd" resize>
@@ -285,8 +275,6 @@ <h3 class="masthead-brand" ng-click="showTag(2)">Listen 1</h3>
</div>
</div>
</div>


<!-- track list window -->
<div class="site-wrapper" ng-hide="is_window_hidden==1">
<div class="cover-container container-placeholder">