mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
8 lines
311 B
JavaScript
8 lines
311 B
JavaScript
|
(function($) {
|
||
|
// Load tree links directly rather than through ajax into .cms-edit-form.
|
||
|
$('.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));
|