Created
September 20, 2013 19:53
-
-
Save allgood2386/6642922 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
Drupal.behaviors.taoti_javascript = { | |
attach: function (context, settings) { | |
$('.view-display-id-our_work_slider .views-field-nothing p').click( function () { | |
var tid = $(this).attr('data-tid'); | |
var descURL = 'slider/' + tid + '/topic-embed'; | |
var newsURL = 'slider/' + tid + '/news-embed'; | |
$('#our-work-taxonomy-desc').empty(); | |
$('#our-work-taxonomy-desc').load(descURL); | |
$('#our-work-news-results').empty(); | |
$('#our-work-news-results').load(newsURL) | |
}); | |
} | |
}; | |
}(jQuery)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment