-
Notifications
You must be signed in to change notification settings - Fork 0
/
dhx.ui.Session.js
executable file
·48 lines (40 loc) · 1.18 KB
/
dhx.ui.Session.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*jslint browser: true, devel: true, eqeq: true, newcap: true, nomen: true, white: true */
/*global $dhx, dhtmlx, dhtmlXLayoutObject */
$dhx.ui.$Application = (function() {
return {};
})();
$dhx.ui.$Session = (function() {
return {
latinize : false
,capitalize : false
,start : function(){
Object.defineProperty($dhx.ui.$Session, 'user_id', {
//get: function() { return bValue; },
//set: function(newValue) { },
value: (
(typeof $dhx.REST !== 'undefined') ? (typeof $dhx.REST.API.session.user_id !== 'undefined' ?
$dhx.REST.API.session.user_id : 6) : 6
),
enumerable: true,
configurable: false,
writable: true
});
Object.defineProperty($dhx.ui.$Session, 'SessionID', {
//get: function() { return bValue; },
//set: function(newValue) { },
value: (
(typeof $dhx.REST !== 'undefined') ? (typeof $dhx.REST.API.session.client_session_id !== 'undefined' ?
$dhx.REST.API.session.client_session_id : -1) : -1
),
enumerable: true,
configurable: false,
writable: true
});
if ($dhx.REST)
{
$dhx.ui.$Session = $dhx.extend($dhx.REST.API.session, $dhx.ui.$Session);
//alert();
}
}
};
})();