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

@ -45,7 +45,7 @@
url: apiClient.getUrl('Startup/User'),
dataType: 'json'
}).done(onUpdateUserComplete).fail(function () {
}).then(onUpdateUserComplete, function () {
var msgKey = form.querySelector('#txtConnectUserName').value ? 'ErrorAddingEmbyConnectAccount' : 'DefaultErrorMessage';
@ -77,7 +77,7 @@
var apiClient = getApiClient();
apiClient.fetchJSON(apiClient.getUrl('Startup/User')).then(function (user) {
apiClient.getJSON(apiClient.getUrl('Startup/User')).then(function (user) {
page.querySelector('#txtUsername').value = user.Name;
page.querySelector('#txtConnectUserName').value = user.ConnectUserName;