Skip to content
This repository
Browse code

MINOR PJAX support for .cms-panel-link

  • Loading branch information...
commit 35d4cd3da8f6060606c260a8b0cffdb6345a754b 1 parent 84b0a7d
Ingo Schommer authored April 17, 2012

Showing 1 changed file with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. 8  admin/javascript/LeftAndMain.js
8  admin/javascript/LeftAndMain.js
@@ -330,8 +330,12 @@ jQuery.noConflict();
330 330
 		 */
331 331
 		$('.cms .cms-panel-link').entwine({
332 332
 			onclick: function(e) {
333  
-				var href = this.attr('href'), url = (href && !href.match(/^#/)) ? href : this.data('href'),
334  
-					data = (this.data('targetPanel')) ? {selector: this.data('targetPanel')} : null;
  333
+				var href = this.attr('href'), 
  334
+					url = (href && !href.match(/^#/)) ? href : this.data('href'),
  335
+					data = {
  336
+						selector: this.data('targetPanel'),
  337
+						pjax: this.data('pjax')
  338
+					};
335 339
 
336 340
 				$('.cms-container').loadPanel(url, null, data);
337 341
 				e.preventDefault();

0 notes on commit 35d4cd3

Please sign in to comment.
Something went wrong with that request. Please try again.