Skip to content

Instantly share code, notes, and snippets.

@allgood2386
Created September 20, 2013 19:53
Show Gist options
  • Save allgood2386/6642922 to your computer and use it in GitHub Desktop.
Save allgood2386/6642922 to your computer and use it in GitHub Desktop.
(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