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) (function (jsOMS, undefined)
{ {
jsOMS.EnumOSType = Object.freeze({ jsOMS.Message.Request.OSType = Object.freeze({
WINDOWS_81: 'windows nt 6.3'; /* Windows 8.1 */ WINDOWS_81: 'windows nt 6.3'; /* Windows 8.1 */
WINDOWS_8: 'windows nt 6.2'; /* Windows 8 */ WINDOWS_8: 'windows nt 6.2'; /* Windows 8 */
WINDOWS_7: 'windows nt 6.1'; /* Windows 7 */ WINDOWS_7: 'windows nt 6.1'; /* Windows 7 */

View File

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

View File

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

View File

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

View File

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

View File

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

10
oms.min.js vendored
View File

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