Subversion Repositories SmartDukaan

Rev

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

Rev 3305 Rev 3406
Line 16... Line 16...
16
	add_to_storage_set("histitems", prodid);
16
	add_to_storage_set("histitems", prodid);
17
    
17
    
18
    load_history_widget();
18
    load_history_widget();
19
 
19
 
20
    load_accessories_widget();
20
    load_accessories_widget();
-
 
21
    
-
 
22
    load_most_compared_widget();
21
 
23
 
22
    myNotes.getNotes();
24
    myNotes.getNotes();
23
    
25
    
24
    /**
26
    /**
25
     * Code to track user clicks on Product slides and 'Proceed to Payment' option
27
     * Code to track user clicks on Product slides and 'Proceed to Payment' option
Line 157... Line 159...
157
			$("#shipping_time").html(msg);
159
			$("#shipping_time").html(msg);
158
		}
160
		}
159
	});
161
	});
160
}
162
}
161
 
163
 
-
 
164
function load_most_compared_widget(){
-
 
165
	jQuery.ajax({
-
 
166
		type : "GET",
-
 
167
		url : "/most-compared-products/" + $("#product_id").val(),
-
 
168
		cache: false,
-
 
169
		success : function(html) {
-
 
170
   		    $("#mostcompared").html(html);
-
 
171
 
-
 
172
		    // Product Title
-
 
173
		    $("#mostcompared table td div a").each(function() {
-
 
174
					$(this).truncate({addtitle : true});
-
 
175
		    });
-
 
176
 
-
 
177
		    // Product Price
-
 
178
		    $("#mostcompared table td div div.price").each(function() {
-
 
179
					$(this).truncate({addtitle : true});
-
 
180
			});
-
 
181
 
-
 
182
		    // Product Details
-
 
183
		    $("#mostcompared table td div div.text").each(function() {
-
 
184
					$(this).truncate( {addtitle : true});
-
 
185
			});
-
 
186
	    }
-
 
187
	});
-
 
188
}
162
189