mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
MINOR Loading folders in AssetAdmin via panel ajax loading
This commit is contained in:
parent
f620f9b46c
commit
eb63384900
@ -24,6 +24,17 @@
|
|||||||
|
|
||||||
$.entwine('ss', function($){
|
$.entwine('ss', function($){
|
||||||
|
|
||||||
|
$('#Form_EditForm_File .ss-gridfield-item').entwine({
|
||||||
|
onclick: function(e) {
|
||||||
|
var grid = this.closest('fieldset.ss-gridfield');
|
||||||
|
if(this.data('class') == 'Folder') {
|
||||||
|
var url = grid.data('urlFolderTemplate').replace('%s', this.data('id'));
|
||||||
|
$('.cms-container').loadPanel(url);
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class: #Form_SyncForm
|
* Class: #Form_SyncForm
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user