Permalink
Browse files

Rename synched to synced. Looked funny

  • Loading branch information...
1 parent af789d4 commit 4ce6e68799cb68b354ead92cb33637c6f9512e62 @jwheare committed Dec 21, 2009
View
@@ -45,9 +45,9 @@ <h1 id="albumsTitle">Your favourite albums</h1>
<ul class="playlists" id="albums"></ul>
</div>
- <h1 id="synchedTitle">Your synched playlists</h1>
+ <h1 id="syncedTitle">Your synced playlists</h1>
<div class="sidebar_list">
- <ul class="playlists" id="synched"></ul>
+ <ul class="playlists" id="synced"></ul>
</div>
<h1 id="subscriptionsTitle">Your subscriptions</h1>
View
@@ -135,7 +135,7 @@ h1#title small {
/* Playlists */
h1#albumsTitle,
h1#subscriptionsTitle,
-h1#synchedTitle {
+h1#syncedTitle {
display: none;
}
#sidebar h1.progress {
@@ -8,8 +8,8 @@ function Playlist () {
this.albumsSidebarList = $('#albums');
this.subscriptionsSidebarTitleElem = $('h1#subscriptionsTitle');
this.subscriptionsSidebarList = $('#subscriptions');
- this.synchedSidebarTitleElem = $('h1#synchedTitle');
- this.synchedSidebarList = $('#synched');
+ this.syncedSidebarTitleElem = $('h1#syncedTitle');
+ this.syncedSidebarList = $('#synced');
this.loadingPlaylistsElem = $('#loading_playlists');
this.createTitleElem = $('#createPlaylist');
this.headerElem = $('#playlistHeader');
@@ -93,9 +93,9 @@ Playlist.prototype = {
if (playlist.isAlbum()) {
this.albumsSidebarList.append(playlist.element);
this.albumsSidebarTitleElem.show();
- } else if (playlist.isSynched()) {
- this.synchedSidebarList.append(playlist.element);
- this.synchedSidebarTitleElem.show();
+ } else if (playlist.isSynced()) {
+ this.syncedSidebarList.append(playlist.element);
+ this.syncedSidebarTitleElem.show();
} else if (playlist.isSubscription()) {
this.subscriptionsSidebarList.append(playlist.element);
this.subscriptionsSidebarTitleElem.show();
@@ -112,16 +112,16 @@ Playlist.prototype = {
} else {
var playlistElements = [];
var albumElements = [];
- var synchedElements = [];
+ var syncedElements = [];
var subscriptionElements = [];
var that = this;
var playlists = MODELS.Playlist.fetchAll(function callback (playlist) {
that.checkSubscription(playlist);
var element = playlist.element.get()[0];
if (playlist.isAlbum()) {
albumElements.push(element);
- } else if (playlist.isSynched()) {
- synchedElements.push(element);
+ } else if (playlist.isSynced()) {
+ syncedElements.push(element);
} else if (playlist.isSubscription()) {
subscriptionElements.push(element);
} else {
@@ -135,9 +135,9 @@ Playlist.prototype = {
this.subscriptionsSidebarTitleElem.show();
this.subscriptionsSidebarList.append(subscriptionElements);
}
- if (synchedElements.length) {
- this.synchedSidebarTitleElem.show();
- this.synchedSidebarList.append(synchedElements);
+ if (syncedElements.length) {
+ this.syncedSidebarTitleElem.show();
+ this.syncedSidebarList.append(syncedElements);
}
if (albumElements.length) {
this.albumsSidebarTitleElem.show();
@@ -482,21 +482,21 @@ Playlist.prototype = {
/* SUBSCRIPTIONS */
subscriptionQueue: 0,
- synchedQueue: 0,
+ syncedQueue: 0,
queueSync: function (playlist) {
- if (playlist.isSynched()) {
- this.synchedQueue++;
- this.synchedSidebarTitleElem.addClass('progress');
+ if (playlist.isSynced()) {
+ this.syncedQueue++;
+ this.syncedSidebarTitleElem.addClass('progress');
} else {
this.subscriptionQueue++;
this.subscriptionsSidebarTitleElem.addClass('progress');
}
},
consumeSyncQueue: function (playlist) {
- if (playlist.isSynched()) {
- this.synchedQueue--;
- if (!this.synchedQueue) {
- this.synchedSidebarTitleElem.removeClass('progress');
+ if (playlist.isSynced()) {
+ this.syncedQueue--;
+ if (!this.syncedQueue) {
+ this.syncedSidebarTitleElem.removeClass('progress');
}
} else {
this.subscriptionQueue--;
@@ -526,7 +526,7 @@ Playlist.prototype = {
}
if (added.length) {
playlist.setLastSyncDate();
- if (playlist.isSynched()) {
+ if (playlist.isSynced()) {
playlist.reset_tracks(newPlaylist.tracks);
playlist.reload();
} else {
@@ -582,9 +582,9 @@ Playlist.prototype = {
if (!this.albumsSidebarList.find('li').size()) {
this.albumsSidebarTitleElem.hide();
}
- } else if (playlist.isSynched()) {
- if (!this.synchedSidebarList.find('li').size()) {
- this.synchedSidebarTitleElem.hide();
+ } else if (playlist.isSynced()) {
+ if (!this.syncedSidebarList.find('li').size()) {
+ this.syncedSidebarTitleElem.hide();
}
} else if (playlist.isSubscription()) {
if (!this.subscriptionsSidebarList.find('li').size()) {
@@ -100,7 +100,7 @@ LastFm.getUserPlaylist = function (data, callback, exceptionHandler) {
namespace: 'LastFm',
method: 'getUserPlaylist',
arguments: [data],
- synched: true
+ synced: true
}
};
var image = $.grep(data.image, function (value, i) {
@@ -177,7 +177,7 @@ LastFm.lovedTracks = function (user, callback, exceptionHandler) {
namespace: 'LastFm',
method: 'lovedTracks',
arguments: [user],
- synched: true
+ synced: true
}
});
// Load tracks
View
@@ -68,7 +68,7 @@ Url.url = function (source, callback, exceptionHandler) {
namespace: 'Url',
method: 'url',
arguments: [source],
- synched: false
+ synced: false
}
};
if (jspf) {
@@ -91,8 +91,8 @@ Playlist.prototype = {
isSubscription: function () {
return this.type == 'subscription' && this.subscription;
},
- isSynched: function () {
- return this.isSubscription() && this.subscription.synched === true;
+ isSynced: function () {
+ return this.isSubscription() && this.subscription.synced === true;
},
setLastSyncDate: function () {
this.lastSync = new Date();

0 comments on commit 4ce6e68

Please sign in to comment.