update to latest js apiclient

This commit is contained in:
LukePulverenti 2013-03-21 16:43:42 -04:00
parent db20e9e3ea
commit 4bc27f3a65
6 changed files with 10 additions and 7 deletions

View File

@ -46,6 +46,9 @@ MediaBrowser.ApiClient = function ($, navigator) {
} }
}; };
/**
* Wraps around jQuery ajax methods to add additional info to the request.
*/
self.ajax = function (request) { self.ajax = function (request) {
if (!request) { if (!request) {
@ -834,7 +837,7 @@ MediaBrowser.ApiClient = function ($, navigator) {
/** /**
* Gets all users from the server * Gets all users from the server
*/ */
self.getAllUsers = function () { self.getUsers = function () {
var url = self.getUrl("users"); var url = self.getUrl("users");

View File

@ -3,7 +3,7 @@
onPageShow: function () { onPageShow: function () {
Dashboard.showLoadingMsg(); Dashboard.showLoadingMsg();
ApiClient.getAllUsers().done(LoginPage.loadUserList); ApiClient.getUsers().done(LoginPage.loadUserList);
}, },
getLastSeenText: function (lastActivityDate) { getLastSeenText: function (lastActivityDate) {

View File

@ -7,7 +7,7 @@
loadPageData: function () { loadPageData: function () {
Dashboard.showLoadingMsg(); Dashboard.showLoadingMsg();
ApiClient.getAllUsers().done(UserProfilesPage.renderUsers); ApiClient.getUsers().done(UserProfilesPage.renderUsers);
}, },
renderUsers: function (users) { renderUsers: function (users) {

View File

@ -2,7 +2,7 @@
gotoNextPage: function () { gotoNextPage: function () {
ApiClient.getAllUsers().done(function (users) { ApiClient.getUsers().done(function (users) {
if (users.length > 1) { if (users.length > 1) {

View File

@ -6,7 +6,7 @@
var page = this; var page = this;
ApiClient.getAllUsers().done(function (users) { ApiClient.getUsers().done(function (users) {
var user = users[0] || { Name: "User" }; var user = users[0] || { Name: "User" };
@ -23,7 +23,7 @@
var page = $.mobile.activePage; var page = $.mobile.activePage;
ApiClient.getAllUsers().done(function (users) { ApiClient.getUsers().done(function (users) {
var user; var user;

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.49" targetFramework="net45" /> <package id="MediaBrowser.ApiClient.Javascript" version="3.0.50" targetFramework="net45" />
<package id="ServiceStack" version="3.9.40" targetFramework="net45" /> <package id="ServiceStack" version="3.9.40" targetFramework="net45" />
<package id="ServiceStack.Common" version="3.9.40" targetFramework="net45" /> <package id="ServiceStack.Common" version="3.9.40" targetFramework="net45" />
<package id="ServiceStack.OrmLite.SqlServer" version="3.9.41" targetFramework="net45" /> <package id="ServiceStack.OrmLite.SqlServer" version="3.9.41" targetFramework="net45" />