mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR PJAX support for .cms-panel-link
This commit is contained in:
parent
84b0a7d96c
commit
35d4cd3da8
@ -330,8 +330,12 @@ jQuery.noConflict();
|
|||||||
*/
|
*/
|
||||||
$('.cms .cms-panel-link').entwine({
|
$('.cms .cms-panel-link').entwine({
|
||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
var href = this.attr('href'), url = (href && !href.match(/^#/)) ? href : this.data('href'),
|
var href = this.attr('href'),
|
||||||
data = (this.data('targetPanel')) ? {selector: this.data('targetPanel')} : null;
|
url = (href && !href.match(/^#/)) ? href : this.data('href'),
|
||||||
|
data = {
|
||||||
|
selector: this.data('targetPanel'),
|
||||||
|
pjax: this.data('pjax')
|
||||||
|
};
|
||||||
|
|
||||||
$('.cms-container').loadPanel(url, null, data);
|
$('.cms-container').loadPanel(url, null, data);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user