925eae0a08e8f542293f2a2856eb8292b156613a
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / Resources / Public / JavaScript / Store / mainstore.js
1 Ext.ns('TYPO3.Workspaces.Configuration');
2
3 TYPO3.Workspaces.Configuration.StoreFieldArray = [
4 {name : 'table'},
5 {name : 'uid', type : 'int'},
6 {name : 't3ver_oid', type : 'int'},
7 {name : 'livepid', type : 'int'},
8 {name : 'stage', type: 'int'},
9 {name : 'change',type : 'int'},
10 {name : 'label_Live'},
11 {name : 'label_Workspace'},
12 {name : 'label_Stage'},
13 {name : 'workspace_Title'},
14 {name : 'actions'},
15 {name : 'icon_Workspace'},
16 {name : 'icon_Live'},
17 {name : 'path_Live'},
18 {name : 'path_Workspace'},
19 {name : 'state_Workspace'},
20 {name : 'workspace_Tstamp'},
21 {name : 'workspace_Formated_Tstamp'},
22 {name : 'allowedAction_nextStage'},
23 {name : 'allowedAction_prevStage'},
24 {name : 'allowedAction_swap'},
25 {name : 'allowedAction_delete'},
26 {name : 'allowedAction_edit'},
27 {name : 'allowedAction_editVersionedPage'},
28 {name : 'allowedAction_view'}
29
30 ];
31
32 TYPO3.Workspaces.MainStore = new Ext.data.GroupingStore({
33 storeId : 'workspacesMainStore',
34 reader : new Ext.data.JsonReader({
35 idProperty : 'uid',
36 root : 'data',
37 totalProperty : 'total'
38 }, TYPO3.Workspaces.Configuration.StoreFieldArray),
39 groupField: 'path_Workspace',
40 paramsAsHash : true,
41 sortInfo : {
42 field : 'label_Live',
43 direction : "ASC"
44 },
45 remoteSort : true,
46 baseParams: {
47 depth : 990,
48 id: TYPO3.settings.Workspaces.id,
49 query: '',
50 start: 0,
51 limit: 30
52 },
53
54 showAction : false,
55 listeners : {
56 beforeload : function() {
57 },
58 load : function(store, records) {
59 },
60 datachanged : function(store) {
61 },
62 scope : this
63 }
64 });