Fixing Namesapces

This commit is contained in:
Dennis Eichhorn 2016-03-25 21:37:31 +01:00
parent cabb3937e4
commit df5d49d108
7 changed files with 11 additions and 11 deletions

View File

@ -9,7 +9,7 @@
*/
(function (jsOMS, undefined)
{
jsOMS.EnumOSType = Object.freeze({
jsOMS.Message.Request.OSType = Object.freeze({
WINDOWS_81: 'windows nt 6.3'; /* Windows 8.1 */
WINDOWS_8: 'windows nt 6.2'; /* Windows 8 */
WINDOWS_7: 'windows nt 6.1'; /* Windows 7 */

View File

@ -9,7 +9,7 @@
*/
(function (jsOMS, undefined)
{
jsOMS.EnumRequestMethod = Object.freeze({
jsOMS.Message.Request.RequestMethod = Object.freeze({
POST: 'POST',
GET: 'GET',
PUT: 'PUT',

View File

@ -9,7 +9,7 @@
*/
(function (jsOMS, undefined)
{
jsOMS.EnumRequestType = Object.freeze({
jsOMS.Message.Request.RequestType = Object.freeze({
JSON: 'json',
RAW: 'raw'
});

View File

@ -9,7 +9,7 @@
*/
(function (jsOMS, undefined)
{
jsOMS.EnumResponseResultType = Object.freeze({
jsOMS.Message.Response.ResponseResultType = Object.freeze({
MULTI: 0,
MESSAGE: 1,
INFO: 2,

View File

@ -9,7 +9,7 @@
*/
(function (jsOMS, undefined)
{
jsOMS.EnumResponseType = Object.freeze({
jsOMS.Message.Response.ResponseType = Object.freeze({
TEXT: 'text',
JSON: 'json',
DOCUMENT: 'document',

View File

@ -94,7 +94,7 @@
self = this;
request.setData(form.getData());
request.setType(jsOMS.EnumResponseType.JSON);
request.setType(jsOMS.Message.Response.ResponseType.JSON);
request.setUri(form.getAction());
request.setMethod(form.getMethod());
request.setRequestHeader('Content-Type', 'application/json');

10
oms.min.js vendored
View File

@ -390,8 +390,8 @@
{
var authRequest = new jsOMS.Request();
authRequest.setUri(this.uri);
authRequest.setMethod(jsOMS.EnumRequestMethod.POST);
authRequest.setResponseType(jsOMS.EnumRequestType.JSON);
authRequest.setMethod(jsOMS.Message.Request.RequestMethod.POST);
authRequest.setResponseType(jsOMS.Message.Request.RequestType.JSON);
authRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
authRequest.setSuccess(function (xhr) {
this.loginResult(xhr);
@ -1030,7 +1030,7 @@ with ({p: MathProcessor.prototype}) {
};
}(window.jsOMS = window.jsOMS || {}));
(function (jsOMS, undefined) {
jsOMS.EnumRequestMethod = Object.freeze({
jsOMS.Message.Request.RequestMethod = Object.freeze({
POST: 'POST',
GET: 'GET',
PUT: 'PUT',
@ -1070,7 +1070,7 @@ with ({p: MathProcessor.prototype}) {
}
}(window.jsOMS = window.jsOMS || {}));
(function (jsOMS, undefined) {
jsOMS.EnumResponseResultType = Object.freeze({
jsOMS.Message.Response.ResponseResultType = Object.freeze({
MULTI: 0,
MESSAGE: 1,
INFO: 2,
@ -1079,7 +1079,7 @@ with ({p: MathProcessor.prototype}) {
});
}(window.jsOMS = window.jsOMS || {}));
(function (jsOMS, undefined) {
jsOMS.EnumRequestType = Object.freeze({
jsOMS.Message.Request.RequestType = Object.freeze({
TEXT: 'text',
JSON: 'json',
DOCUMENT: 'document',