Subversion Repositories SmartDukaan

Rev

Rev 4126 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4126 Rev 5145
Line 18... Line 18...
18
    var title = this.title;
18
    var title = this.title;
19
    var url = this.name;
19
    var url = this.name;
20
    var itemsarray = items.split('-');
20
    var itemsarray = items.split('-');
21
    var catId = itemsarray[1];
21
    var catId = itemsarray[1];
22
    var params = "categoryid="+catId;
22
    var params = "categoryid="+catId;
23
    //alert(itemsarray.length);
-
 
24
    if(itemsarray.length > 2){
23
    if(itemsarray.length > 2){
25
    	params = params+"&brand="+itemsarray[2];
24
    	params = params+"&brand="+itemsarray[2];
26
    }
25
    }
27
    removeLastActiveState();
26
    removeLastActiveState();
28
    $('a.activeTab').each(function(index) {
27
    $('a.activeTab').each(function(index) {
Line 32... Line 31...
32
    hideShowTabContent("otherTabContent", "show");
31
    hideShowTabContent("otherTabContent", "show");
33
    setContentHeading(title);
32
    setContentHeading(title);
34
    hideShowTabContent("multifacetedSearch", "hide");
33
    hideShowTabContent("multifacetedSearch", "hide");
35
    hideShowTabContent("browseContent", "hide");
34
    hideShowTabContent("browseContent", "hide");
36
    // Ajax call to fecth data in page class
35
    // Ajax call to fecth data in page class
37
    //alert("Ajax call to get best sellers");
-
 
38
    //alert(params);
-
 
39
    jQuery.ajax({
36
    jQuery.ajax({
40
      url: "/"+url,
37
      url: "/"+url,
41
      type: "GET",
38
      type: "GET",
42
      data: params,
39
      data: params,
43
      contentType: "text/html",
40
      contentType: "text/html",
44
      cache: false,
41
      cache: false,
45
      success: function(html){
42
      success: function(html){
46
        if(html!=1){
43
        if(html!=1){
47
          //alert(html);
-
 
48
          $('#productListCenter2').html(html);
44
          $('#productListCenter2').html(html);
49
          $('#productListCenter2 ul.product-description li').truncate({addtitle: true});
45
          $('#productListCenter2 ul.product-description li').truncate({addtitle: true});
50
        }else{
46
        }else{
51
          //alert("Sorry! Unexpected Error. Try again!");
-
 
52
        }
47
        }
53
      }
48
      }
54
    });
49
    });
55
    return false;
50
    return false;
56
  });
51
  });