Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: fabarea/vidi.archive
base: bae12cb2b3
...
head fork: fabarea/vidi.archive
compare: 3128442d47
  • 3 commits
  • 6 files changed
  • 0 commit comments
  • 1 contributor
14 Resources/Public/JavaScript/Actions/File.js
View
@@ -42,7 +42,19 @@ TYPO3.Vidi.Actions.File = {
}
);
},
-
+ editTextFile: function(record) {
+ Ext.create(
+ 'TYPO3.Vidi.Components.Overlay',
+ 'file_edit.php?' + Ext.Object.toQueryString({target: record.get('id')}, true),
+ 'editContentRecord',
+ function() {}
+ );
+ },
+ showFileInfo: function(record) {
+ if (top.launchView !== undefined) {
+ top.launchView(record.get('id'), '');
+ }
+ },
createEmptyFile: function() {
var currentFolder = this._getCurrentFolder();
Ext.Msg.prompt(
15 Resources/Public/JavaScript/Components/Grid/Columns/FileActionColumn.js
View
@@ -8,7 +8,7 @@ Ext.define('TYPO3.Vidi.Components.Grid.Columns.FileActionColumn', {
tooltip: 'Edit',
handler: function(grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
- alert("Edit " + rec.get('name'));
+ TYPO3.Vidi.Actions.File.editTextFile(rec)
},
active: function(record) {
if (record.get('type').substring(0, 5) == 'text/') {
@@ -46,7 +46,18 @@ Ext.define('TYPO3.Vidi.Components.Grid.Columns.FileActionColumn', {
tooltip: 'Info',
handler: function(grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
- alert("Info " + rec.get('name'));
+ TYPO3.Vidi.Actions.File.showFileInfo(rec);
+ },
+ active: function(record) {
+ return true;
+ }
+ },
+ {
+ iconCls: 't3-icon t3-icon-mimetypes t3-icon-mimetypes-x t3-icon-x-sys_action',
+ tooltip: '(re)index',
+ handler: function(grid, rowIndex, colIndex) {
+ var rec = grid.getStore().getAt(rowIndex);
+ TYPO3.Vidi.Actions.File.showFileInfo(rec);
},
active: function(record) {
return true;
6 Resources/Public/JavaScript/Model/Collection.js
View
@@ -15,12 +15,6 @@ Ext.define('TYPO3.Vidi.Model.Collection', {
],
proxy: {
type: 'direct',
- api: {
- create: TYPO3.Vidi.Service.ExtDirect.CollectionManagement.create,
- read: TYPO3.Vidi.Service.ExtDirect.CollectionManagement.read,
- update: TYPO3.Vidi.Service.ExtDirect.CollectionManagement.update,
- destroy: TYPO3.Vidi.Service.ExtDirect.CollectionManagement.destroy
- },
directFn: Ext.emptyFn,
extraParams: {
currentTable: '',
17 Resources/Public/JavaScript/Model/FilterCollection.js
View
@@ -3,12 +3,6 @@ Ext.define('TYPO3.Vidi.Model.Filter', {
extend: 'TYPO3.Vidi.Model.Collection',
proxy: {
type: 'direct',
- api: {
- create: TYPO3.Vidi.Service.ExtDirect.Filter.create,
- read: TYPO3.Vidi.Service.ExtDirect.Filter.read,
- update: TYPO3.Vidi.Service.ExtDirect.Filter.update,
- destroy: TYPO3.Vidi.Service.ExtDirect.Filter.destroy
- },
directFn: Ext.emptyFn,
extraParams: {
currentTable: '',
@@ -19,5 +13,16 @@ Ext.define('TYPO3.Vidi.Model.Filter', {
root: 'data',
totalProperty: 'total'
}
+ },
+ statics :{
+ getProxy: function() {
+ this.proxy.api = {
+ create: eval(TYPO3.TYPO3.Core.Registry.get('vidi/mainModule/collectionManagement/ExtDirectEndPoints/Filter') + '.create'),
+ read: eval(TYPO3.TYPO3.Core.Registry.get('vidi/mainModule/collectionManagement/ExtDirectEndPoints/Filter') + '.read'),
+ update: eval(TYPO3.TYPO3.Core.Registry.get('vidi/mainModule/collectionManagement/ExtDirectEndPoints/Filter') + '.update'),
+ destroy: eval(TYPO3.TYPO3.Core.Registry.get('vidi/mainModule/collectionManagement/ExtDirectEndPoints/Filter') + '.destroy')
+ };
+ return this.proxy;
+ }
}
});
13 Resources/Public/JavaScript/Model/StaticCollection.js
View
@@ -1,4 +1,15 @@
Ext.define('TYPO3.Vidi.Model.StaticCollection', {
- extend: 'TYPO3.Vidi.Model.Collection'
+ extend: 'TYPO3.Vidi.Model.Collection',
+ statics :{
+ getProxy: function() {
+ this.proxy.api = {
+ create: eval(TYPO3.TYPO3.Core.Registry.get('vidi/mainModule/collectionManagement/ExtDirectEndPoints/Static') + '.create'),
+ read: eval(TYPO3.TYPO3.Core.Registry.get('vidi/mainModule/collectionManagement/ExtDirectEndPoints/Static') + '.read'),
+ update: eval(TYPO3.TYPO3.Core.Registry.get('vidi/mainModule/collectionManagement/ExtDirectEndPoints/Static') + '.update'),
+ destroy: eval(TYPO3.TYPO3.Core.Registry.get('vidi/mainModule/collectionManagement/ExtDirectEndPoints/Static') + '.destroy')
+ };
+ return this.proxy;
+ }
+ }
});
2  Resources/Public/JavaScript/Module/UserInterfaceModule.js
View
@@ -76,6 +76,8 @@ TYPO3.Vidi.Application.registerModule({
TYPO3.TYPO3.Core.Registry.set('vidi/mainModule/filterBar/hidden', false);
TYPO3.TYPO3.Core.Registry.set('vidi/mainModule/gridToolbar', 'Vidi-GridToolbar');
TYPO3.TYPO3.Core.Registry.set('vidi/mainModule/collectionManagement/enabled', true);
+ TYPO3.TYPO3.Core.Registry.set('vidi/mainModule/collectionManagement/ExtDirectEndPoints/Static', true);
+ TYPO3.TYPO3.Core.Registry.set('vidi/mainModule/collectionManagement/ExtDirectEndPoints/Filter', 'TYPO3.Vidi.Service.ExtDirect.Filter');
TYPO3.TYPO3.Core.Registry.set('vidi/mainModule/collectionManagement/xtype', 'TYPO3-Vidi-View-Collection-ListPanel');
}
});

No commit comments for this range

Something went wrong with that request. Please try again.