update fetch requests

This commit is contained in:
Luke Pulverenti 2015-12-06 14:46:18 -05:00
parent 5f6d68e3b5
commit 7c3fa06651
10 changed files with 74 additions and 39 deletions

View file

@ -191,7 +191,7 @@
}
function supportInAppSignup() {
return AppInfo.isNativeApp;
return true;
return AppInfo.isNativeApp || window.location.href.toLowerCase().indexOf('https') == 0;
}

View file

@ -44,7 +44,8 @@
CameraUploadPath: $('#txtUploadPath', page).val()
}),
contentType: "application/json"
contentType: "application/json",
dataType: 'json'
}).then(Dashboard.processServerConfigurationUpdateResult);
}

View file

@ -37,7 +37,7 @@
data: JSON.stringify(info),
contentType: "application/json"
}).then(function (result) {
}).then(function () {
Dashboard.processServerConfigurationUpdateResult();
Dashboard.navigate('livetvstatus.html');

View file

@ -759,9 +759,10 @@ var Dashboard = {
if (!apiClient) {
var deferred = $.Deferred();
deferred.reject();
return deferred.promise();
return new Promise(function (resolve, reject) {
reject();
});
}
if (!Dashboard.getPluginSecurityInfoPromise) {