mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Redirecting page links in CMSPagesController to CMSPageEditController (admin/pages/show/99 to admin/page/show/99)
This commit is contained in:
parent
c4c3d21fa9
commit
c4a99dfc09
@ -21,4 +21,13 @@ class CMSPagesController extends CMSMain {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Link($action = null) {
|
||||||
|
// Special case: All show links should redirect to the page edit interface instead (mostly from tree nodes)
|
||||||
|
if(preg_match('/^show/', $action)) {
|
||||||
|
return singleton('CMSPageEditController')->Link($action);
|
||||||
|
} else {
|
||||||
|
return parent::Link($action);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,7 +0,0 @@
|
|||||||
(function($) {
|
|
||||||
$('.cms-tree').bind('select_node.jstree', function(e, data) {
|
|
||||||
var node = data.rslt.obj, url = $(node).find('a:first').attr('href');
|
|
||||||
if(url && url != '#') document.location.href = url;
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
}(jQuery));
|
|
Loading…
Reference in New Issue
Block a user