-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
71 lines (63 loc) · 1.72 KB
/
app.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
* File: app.js
*
* This file was generated by Sencha Designer version 2.0.0.
* http://www.sencha.com/products/designer/
*
* This file requires use of the Sencha Touch 2.0.x library, under independent license.
* License of Sencha Designer does not include license for Sencha Touch 2.0.x. For more
* details see http://www.sencha.com/license or contact [email protected].
*
* This file will be auto-generated each and everytime you save your project.
*
* Do NOT hand edit this file.
*/
Ext.Loader.setConfig({
enabled: true
});
Ext.application({
models: [
'Entry'
],
stores: [
'MyStore'
],
views: [
'EntryListDetail',
'AboutPanel',
'About',
'AppContainer'
],
icon: 'icon.png',
name: 'kModerate',
controllers: [
'MainController'
],
launch: function() {
kModerate.vars = {
debug: false,
ks: null,
host: 'https://www.kaltura.com',
viewingEntryId: null,
moderationCurrentAction: null,
rememberMeChecked: false
};
kModerate.myLog = function(msg){
if (kModerate.vars.debug){
console.log(msg);
}
};
documentCookies = document.cookie.split(";");
for (i=0;i<documentCookies.length;i++)
{
x=documentCookies[i].substr(0,documentCookies[i].indexOf("="));
y=documentCookies[i].substr(documentCookies[i].indexOf("=")+1);
x=x.replace(/^\s+|\s+$/g,"");
if(x == 'kmoderateLogin')
{
kModerate.vars.ks = y;
}
}
Ext.create('kModerate.view.AppContainer', {fullscreen: true});
}
});