Skip to content

Commit

Permalink
Can now change the mime types of datastreams, and cleaned up the data…
Browse files Browse the repository at this point in the history
…stream grid a bit.
  • Loading branch information
nigelgbanks committed Sep 8, 2011
1 parent 5c386a7 commit 84dd072
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions js/ManagePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,16 @@ Ext.onReady(function(){
})],
columns: [{
header: 'ID',
dataIndex: 'dsid'
dataIndex: 'dsid',
flex: 1
}, {
header: 'Label',
dataIndex: 'label',
field:{
xtype:'textfield',
allowBlank:false
},
flex:1
flex: 1
}, {
header: 'State',
dataIndex: 'state',
Expand All @@ -171,10 +172,16 @@ Ext.onReady(function(){
}
}, {
header: 'Mime Type',
dataIndex: 'mime'
dataIndex: 'mime',
field:{
xtype:'textfield',
allowBlank:false
},
flex: 1
}, {
header: 'Date Created',
dataIndex: 'created'
dataIndex: 'created',
flex: 1
}],
listeners: {
selectionchange: function(view, selections, options) {
Expand Down Expand Up @@ -377,9 +384,13 @@ Ext.onReady(function(){
action: window.location // Same Spot.
});
var dsid = form.down('input[name="dsid"]');
dsid.set({value: record.get('dsid')});
dsid.set({
value: record.get('dsid')
});
var action = form.down('input[name="action"]');
action.set({value: 'edit'});
action.set({
value: 'edit'
});
document.forms["datastream-edit-form"].submit();
}
}
Expand Down

0 comments on commit 84dd072

Please sign in to comment.