Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Track sorting and listing improvements. (Bug 796305 and bug 841977) #23961

Merged
merged 4 commits into from Oct 17, 2014

Conversation

hfiguiere
Copy link
Contributor

Includes dependencies that have to land before this. ie will be rebased when time comes.

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@hfiguiere hfiguiere force-pushed the disc-numbers-list branch 2 times, most recently from e458adf to 97b0ec1 Compare September 24, 2014 15:10
@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@@ -1147,7 +1180,12 @@ function createListElement(option, data, index, highlight) {

var indexSpan = document.createElement('span');
indexSpan.className = 'list-song-index';
indexSpan.textContent = index + 1;
var trackNum = data.metadata.tracknum;
if (data.multidisc) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably be extra-careful here and only show the disc number if data.metadata.discnum exists. Otherwise, we'll get something weird like undefined.01 for the index.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point. I'll update to

if (data.metadata.discnum && data.multidisc)

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@mozilla-autolander-deprecated
Copy link
Contributor

This pull request has been closed due to tree stability issues. Please rebase and re-open the pull request if you still need to land this. Ensure the gaia-try run is green before landing. Sorry for any inconvenience.

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@hfiguiere hfiguiere changed the title Bug 841977 - Show track number instead of index. Also disc number if relevant. Track sorting and listing improvements. (Bug 796305 and bug 841977) Oct 15, 2014

maxDiscNum = Math.max(
dataArray[dataArray.length - 1].metadata.disccount,
dataArray[dataArray.length - 1].metadata.discnum
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that it's possible (but unlikely) that this won't get you the maximum disccount value, since you're sorting by discnum and not disccount.

@try-server-hook
Copy link

hfiguiere Hubert Figuière (hfiguiere) started tests. Results

@hfiguiere
Copy link
Contributor Author

hfiguiere added a commit that referenced this pull request Oct 17, 2014
Track sorting and listing improvements. (Bug 796305 and bug 841977) r=squib
@hfiguiere hfiguiere merged commit 79333a3 into mozilla-b2g:master Oct 17, 2014
@hfiguiere hfiguiere deleted the disc-numbers-list branch October 17, 2014 17:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants