MINOR Click behaviour for special "panel loading" links in the CMS

This commit is contained in:
Ingo Schommer 2012-02-15 19:32:23 +01:00
parent ca9b78f255
commit a3d8185d8e

View File

@ -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);