Subversion Repositories SmartDukaan

Rev

Rev 1844 | Rev 1945 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1844 Rev 1923
Line 22... Line 22...
22
    var items = this.id;
22
    var items = this.id;
23
    var title = this.title;
23
    var title = this.title;
24
    var url = this.name;
24
    var url = this.name;
25
    var itemsarray = items.split('-');
25
    var itemsarray = items.split('-');
26
    var catId = itemsarray[1];
26
    var catId = itemsarray[1];
-
 
27
    var params = "categoryid="+catId;
-
 
28
    //alert(itemsarray.length);
-
 
29
    if(itemsarray.length > 2){
-
 
30
    	params = params+"&brand="+itemsarray[2];
-
 
31
    }
27
    removeLastActiveState();
32
    removeLastActiveState();
28
    $('a.activeTab').each(function(index) {
33
    $('a.activeTab').each(function(index) {
29
      $('a.activeTab').removeClass('activeTab');
34
      $('a.activeTab').removeClass('activeTab');
30
    });
35
    });
31
    $(this).addClass('category-tabs activeTab');
36
    $(this).addClass('category-tabs activeTab');
Line 33... Line 38...
33
    setContentHeading(title);
38
    setContentHeading(title);
34
    hideShowTabContent("multifacetedSearch", "hide");
39
    hideShowTabContent("multifacetedSearch", "hide");
35
    hideShowTabContent("browseContent", "hide");
40
    hideShowTabContent("browseContent", "hide");
36
    // Ajax call to fecth data in page class
41
    // Ajax call to fecth data in page class
37
    //alert("Ajax call to get best sellers");
42
    //alert("Ajax call to get best sellers");
-
 
43
    //alert(params);
38
    jQuery.ajax({
44
    jQuery.ajax({
39
      url: "../"+url,
45
      url: "/"+url,
40
      type: "GET",
46
      type: "GET",
41
      data: "categoryid="+catId,
47
      data: params,
42
      contentType: "text/html",
48
      contentType: "text/html",
43
      cache: false,
49
      cache: false,
44
      success: function(html){
50
      success: function(html){
45
        if(html!=1){
51
        if(html!=1){
46
          //alert(html);
52
          //alert(html);