integration/v2/js/main.js
changeset 133 d7aecea73e6d
parent 132 2f15d59e65ef
child 138 f694df1f57a6
equal deleted inserted replaced
132:2f15d59e65ef 133:d7aecea73e6d
     1 $(function(){
     1 $(function(){
       
     2 //filters
       
     3 	$('.filters a').each(function(){
       
     4 		var text = $.trim($(this).text());
       
     5 		if(text.length > 30){
       
     6 			$(this).text(text.substr(0, 30) + '...')
       
     7 		}
       
     8 	});
     2 //masonry
     9 //masonry
     3 	var masonry465 = $('.masonry-465');
    10 	var masonry465 = $('.masonry-465');
     4 	masonry465.masonry({
    11 	masonry465.masonry({
     5 	  columnWidth: 465,
    12 	  columnWidth: 465,
     6 	  itemSelector: '.item-masonry',
    13 	  itemSelector: '.item-masonry',
    42 			e.preventDefault();
    49 			e.preventDefault();
    43 			var tag = $(this).attr('data-tag');
    50 			var tag = $(this).attr('data-tag');
    44 			keywordsTagIt.tagit("createTag", tag);
    51 			keywordsTagIt.tagit("createTag", tag);
    45 		});
    52 		});
    46 	}
    53 	}
    47 //filters
    54 
    48 	$('.filters a').each(function(){
       
    49 		var text = $.trim($(this).text());
       
    50 		if(text.length > 30){
       
    51 			$(this).text(text.substr(0, 30) + '...')
       
    52 		}
       
    53 	})
       
    54 	
    55 	
    55 });//ready
    56 });//ready