Blame view

js/jcarousel_gall.js 789 Bytes
8d65d0ce   andryeyev   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  (function($){
  
      $.fn.jcarousel_gall = function(callerSettings) {
  	
  	var basket_class = this;
  
  		var find_gall = function(){ 
           $(basket_class).each(function (i) { 
                  $(this).bind('click',function(){ 
                  var href = $(this).attr('href');	
  				$.post(href, function(data) {
  					$('#jcarousel').hide();
  					$('#jcarousel').html(data);
  					$('#jcarousel').fadeIn('slow');
  					
  				});		
  				
                  return false;
                  })
           })
          }
  
  		var start_gall = function(){
  			var href = $('.jcarousel_gall:first').attr('href');
  				$.post(href, function(data) {
  					$('#jcarousel').hide();
  					$('#jcarousel').html(data);
  					$('#jcarousel').fadeIn('slow');
  					
  				});	
  		}	
  	
  	start_gall();
  	find_gall();
  	
  	}
  	
  })(jQuery);