mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Click behaviour for special "panel loading" links in the CMS
This commit is contained in:
parent
ca9b78f255
commit
a3d8185d8e
@ -294,5 +294,18 @@
|
||||
this.find('.cms-content-loading-overlay,.cms-content-loading-spinner').remove();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Loads
|
||||
*/
|
||||
$('.cms-content .cms-panel-link').entwine({
|
||||
onclick: function(e) {
|
||||
var href = this.attr('href'), url = href ? href : this.data('href'),
|
||||
data = (this.data('target-panel')) ? {selector: this.data('target-panel')} : null;
|
||||
|
||||
$('.cms-container').entwine('ss').loadPanel(url, null, data);
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|
Loading…
x
Reference in New Issue
Block a user