move completely to fetch

This commit is contained in:
Luke Pulverenti 2015-11-28 03:07:44 -05:00
parent ee899a7332
commit 9932bc3eb5
168 changed files with 948 additions and 945 deletions

View file

@ -41,7 +41,7 @@
query.UserId = Dashboard.getCurrentUserId();
ApiClient.fetchJSON(ApiClient.getUrl('Playlists/' + item.Id + '/Items', query)).then(function (result) {
ApiClient.getJSON(ApiClient.getUrl('Playlists/' + item.Id + '/Items', query)).then(function (result) {
// Scroll back up so they can see the results from the beginning
window.scrollTo(0, 0);
@ -142,11 +142,11 @@
type: 'POST'
}).done(function () {
}).then(function () {
Dashboard.hideLoadingMsg();
}).fail(function () {
}, function () {
Dashboard.hideLoadingMsg();
reloadItems(page, item);
@ -163,7 +163,7 @@
type: 'DELETE'
}).done(function () {
}).then(function () {
reloadItems(page, item);
});