mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Moved CMSMain.GridField.js logic into LeftAndMain.js (applies to all CMS interfaces), fixed event bugs with GridField overloading in AssetAdmin.js
This commit is contained in:
parent
6860c5dd9f
commit
18e612e65b
@ -88,9 +88,9 @@ JS
|
|||||||
new GridFieldSortableHeader(),
|
new GridFieldSortableHeader(),
|
||||||
new GridFieldFilter(),
|
new GridFieldFilter(),
|
||||||
new GridFieldDefaultColumns(),
|
new GridFieldDefaultColumns(),
|
||||||
new GridFieldPaginator(10),
|
new GridFieldPaginator(15),
|
||||||
new GridFieldAction_Delete(),
|
|
||||||
new GridFieldAction_Edit(),
|
new GridFieldAction_Edit(),
|
||||||
|
new GridFieldAction_Delete(),
|
||||||
new GridFieldPopupForms()
|
new GridFieldPopupForms()
|
||||||
);
|
);
|
||||||
$files = DataList::create('File')
|
$files = DataList::create('File')
|
||||||
|
@ -67,7 +67,6 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
CMS_DIR . '/javascript/CMSMain.js',
|
CMS_DIR . '/javascript/CMSMain.js',
|
||||||
CMS_DIR . '/javascript/CMSMain.EditForm.js',
|
CMS_DIR . '/javascript/CMSMain.EditForm.js',
|
||||||
CMS_DIR . '/javascript/CMSMain.AddForm.js',
|
CMS_DIR . '/javascript/CMSMain.AddForm.js',
|
||||||
CMS_DIR . '/javascript/CMSMain.GridField.js',
|
|
||||||
CMS_DIR . '/javascript/CMSPageHistoryController.js',
|
CMS_DIR . '/javascript/CMSPageHistoryController.js',
|
||||||
// CMS_DIR . '/javascript/CMSPagesController.Tree.js',
|
// CMS_DIR . '/javascript/CMSPagesController.Tree.js',
|
||||||
CMS_DIR . '/javascript/SilverStripeNavigator.js'
|
CMS_DIR . '/javascript/SilverStripeNavigator.js'
|
||||||
|
@ -15,4 +15,3 @@
|
|||||||
.cms .AssetAdmin #Form_EditForm_File td.col-StripThumbnail img { width: 32px; height: 32px; }
|
.cms .AssetAdmin #Form_EditForm_File td.col-StripThumbnail img { width: 32px; height: 32px; }
|
||||||
.cms .AssetAdmin #Form_EditForm_File tr[data-class=Folder] td.col-StripThumbnail { background: transparent url(../../sapphire/admin/images/sprites-32x32/blue-folder-horizontal.png) no-repeat top left; }
|
.cms .AssetAdmin #Form_EditForm_File tr[data-class=Folder] td.col-StripThumbnail { background: transparent url(../../sapphire/admin/images/sprites-32x32/blue-folder-horizontal.png) no-repeat top left; }
|
||||||
.cms .AssetAdmin #Form_EditForm_File tr[data-class=File] td.col-StripThumbnail { background: transparent url(../../sapphire/admin/images/sprites-32x32/blue-document.png) no-repeat top left; }
|
.cms .AssetAdmin #Form_EditForm_File tr[data-class=File] td.col-StripThumbnail { background: transparent url(../../sapphire/admin/images/sprites-32x32/blue-document.png) no-repeat top left; }
|
||||||
.cms .AssetAdmin #Form_EditForm_File td.col-Title { cursor: pointer; }
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
// Let actions do their own thing
|
// Let actions do their own thing
|
||||||
if($(e.target).is('.action')) {
|
if($(e.target).is('.action')) {
|
||||||
this._super();
|
this._super(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,7 +40,7 @@
|
|||||||
if(this.data('class') == 'Folder') {
|
if(this.data('class') == 'Folder') {
|
||||||
var url = grid.data('urlFolderTemplate').replace('%s', this.data('id'));
|
var url = grid.data('urlFolderTemplate').replace('%s', this.data('id'));
|
||||||
$('.cms-container').loadPanel(url);
|
$('.cms-container').loadPanel(url);
|
||||||
e.preventDefault();
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
jQuery(function($){
|
|
||||||
$('.ss-gridfield').entwine({
|
|
||||||
onopennewview: function(e, url) {
|
|
||||||
$('.cms-container').entwine('ss').loadPanel(url);
|
|
||||||
return false;
|
|
||||||
},
|
|
||||||
|
|
||||||
onopeneditview: function(e, url) {
|
|
||||||
$('.cms-container').entwine('ss').loadPanel(url);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
@ -27,8 +27,5 @@
|
|||||||
background: transparent url(../../sapphire/admin/images/sprites-32x32/blue-document.png) no-repeat top left;
|
background: transparent url(../../sapphire/admin/images/sprites-32x32/blue-document.png) no-repeat top left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
td.col-Title {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user