mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge branch 'master' into integration
This commit is contained in:
commit
477c319cac
@ -38,10 +38,12 @@ class AssetAdmin extends LeftAndMain {
|
||||
* Return fake-ID "root" if no ID is found (needed to upload files into the root-folder)
|
||||
*/
|
||||
public function currentPageID() {
|
||||
if(isset($_REQUEST['ID']) && is_numeric($_REQUEST['ID'])) {
|
||||
return $_REQUEST['ID'];
|
||||
if($this->request->requestVar('ID')) {
|
||||
return $this->request->requestVar('ID');
|
||||
} elseif (is_numeric($this->urlParams['ID'])) {
|
||||
return $this->urlParams['ID'];
|
||||
} elseif(Session::get("{$this->class}.currentPage")) {
|
||||
return Session::get("{$this->class}.currentPage");
|
||||
} else {
|
||||
return "root";
|
||||
}
|
||||
@ -475,6 +477,18 @@ JS
|
||||
return array_diff($allThumbnails, $usedThumbnails);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ArrayList
|
||||
*/
|
||||
public function Breadcrumbs($unlinked = false) {
|
||||
$items = parent::Breadcrumbs($unlinked);
|
||||
|
||||
// The root element should explicitly point to the root node
|
||||
$items[0]->Link = Controller::join_links($this->Link('show'), 'root');
|
||||
|
||||
return $items;
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* Delete multiple {@link Folder} records (and the associated filesystem nodes).
|
||||
|
@ -31,7 +31,10 @@
|
||||
$('#Form_EditForm_File .ss-gridfield-item').entwine({
|
||||
onclick: function(e) {
|
||||
// Let actions do their own thing
|
||||
if($(e.target).is('.action')) return;
|
||||
if($(e.target).is('.action')) {
|
||||
this._super();
|
||||
return;
|
||||
}
|
||||
|
||||
var grid = this.closest('.ss-gridfield');
|
||||
if(this.data('class') == 'Folder') {
|
||||
|
@ -1,5 +1,5 @@
|
||||
jQuery(function($){
|
||||
$('fieldset.ss-gridfield').entwine({
|
||||
$('.ss-gridfield').entwine({
|
||||
onopennewview: function(e, url) {
|
||||
$('.cms-container').entwine('ss').loadPanel(url);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user