mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 17:58:41 +00:00
Fixing Namesapces
This commit is contained in:
parent
cabb3937e4
commit
df5d49d108
|
|
@ -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 */
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
|
|
|
||||||
|
|
@ -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
10
oms.min.js
vendored
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user