Permalink
Browse files

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

  • Loading branch information...
1 parent ca9b78f commit a3d8185d8e4c70f7f0207f075c0bc23b3c4a78c2 @chillu chillu committed Feb 15, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 admin/javascript/LeftAndMain.Content.js
@@ -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);

0 comments on commit a3d8185

Please sign in to comment.