Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $links = $('#sidebar div.portfolio-block a.portfolio-block-entry');
- $links.click(function(){
- var nodeId = this.href.substr(this.href.lastIndexOf('/')+1);
- for (var i = 0; i < fullItems.length; i++) {
- itemNodeId = $(fullItems[i]).find('div.views-field-nid span.field-content').html();
- console.log('Nid from link = ' + nodeId + ', Nid from list = ' + itemNodeId);
- if ( itemNodeId == nodeId ) {
- showcaseItem($(fullItems[i]));
- }
- }
- //window.alert('About to return false');
- return false;
- });
Add Comment
Please, Sign In to add comment