Guest User

Untitled

a guest
Jul 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. $links = $('#sidebar div.portfolio-block a.portfolio-block-entry');
  2. $links.click(function(){
  3. var nodeId = this.href.substr(this.href.lastIndexOf('/')+1);
  4. for (var i = 0; i < fullItems.length; i++) {
  5. itemNodeId = $(fullItems[i]).find('div.views-field-nid span.field-content').html();
  6. console.log('Nid from link = ' + nodeId + ', Nid from list = ' + itemNodeId);
  7. if ( itemNodeId == nodeId ) {
  8. showcaseItem($(fullItems[i]));
  9. }
  10. }
  11. //window.alert('About to return false');
  12. return false;
  13. });
Add Comment
Please, Sign In to add comment