Subversion Repositories SmartDukaan

Rev

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

Rev 9153 Rev 10198
Line 322... Line 322...
322
		}
322
		}
323
	});
323
	});
324
}
324
}
325
 
325
 
326
function load_most_compared_widget(){
326
function load_most_compared_widget(){
-
 
327
	if(Entity.isComparable) {
327
	jQuery.ajax({
328
		jQuery.ajax({
328
		type : "GET",
329
			type : "GET",
329
		url : "/most-compared-products/" + $("#product_id").val(),
330
			url : "/most-compared-products/" + $("#product_id").val(),
330
		cache: false,
331
			cache: false,
331
		success : function(html) {
332
			success : function(html) {
332
   		    $("#mostcompared").html(html);
333
	   		    $("#mostcompared").html(html);
333
 
334
	
334
		    // Product Title
335
			    // Product Title
335
		    $("#mostcompared table td div a").each(function() {
336
			    $("#mostcompared table td div a").each(function() {
336
		    		if($(this).attr('class') != "compare-now"){
337
			    		if($(this).attr('class') != "compare-now"){
337
		    			$(this).truncate({addtitle : true});
338
			    			$(this).truncate({addtitle : true});
338
		    		}
339
			    		}
339
		    });
340
			    });
340
 
341
	
341
		    // Product Price
342
			    // Product Price
342
		    $("#mostcompared table td div div.price").each(function() {
343
			    $("#mostcompared table td div div.price").each(function() {
343
					$(this).truncate({addtitle : true});
344
						$(this).truncate({addtitle : true});
344
			});
345
				});
345
 
346
	
346
		    // Product Details
347
			    // Product Details
347
		    $("#mostcompared table td div div.text").each(function() {
348
			    $("#mostcompared table td div div.text").each(function() {
348
					$(this).truncate( {addtitle : true});
349
						$(this).truncate( {addtitle : true});
349
			});
350
				});
350
	    }
351
		    }
351
	});
352
		});
-
 
353
	}
352
}
354
}
353
function onColorSelectorChange(itemid){
355
function onColorSelectorChange(itemid){
354
	if($('#sp').length>0){
356
	if($('#sp').length>0){
355
		$('#sp').html(PARAMETERS[itemid].SP);
357
		$('#sp').html(PARAMETERS[itemid].SP);
356
		$('#mrp').html(PARAMETERS[itemid].MRP);
358
		$('#mrp').html(PARAMETERS[itemid].MRP);