Subversion Repositories SmartDukaan

Rev

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

Rev 3034 Rev 3037
Line 384... Line 384...
384
				"data" : data
384
				"data" : data
385
			},
385
			},
386
			cache : false
386
			cache : false
387
		});
387
		});
388
	}
388
	}
389
}
-
 
390
389
}
-
 
390
 
-
 
391
function load_accessories_widget(){
-
 
392
	if($("#accessories").length == 0) {
-
 
393
		return;
-
 
394
	}
-
 
395
	jQuery.ajax({
-
 
396
		type : "GET",
-
 
397
		url : "/related-accessories/" + $("#product_id").val(),
-
 
398
		cache: false,
-
 
399
		success : function(html) {
-
 
400
   		    $("#accessories").html(html);
-
 
401
 
-
 
402
		    // Product Title
-
 
403
		    $("#accessories table td div a").each(function() {
-
 
404
					$(this).truncate({addtitle : true});
-
 
405
		    });
-
 
406
 
-
 
407
		    // Product Price
-
 
408
		    $("#accessories table td div div.price").each(function() {
-
 
409
					$(this).truncate({addtitle : true});
-
 
410
			});
-
 
411
 
-
 
412
		    // Product Details
-
 
413
		    $("#accessories table td div div.text").each(function() {
-
 
414
					$(this).truncate( {addtitle : true});
-
 
415
			});
-
 
416
	    }
-
 
417
	});
-
 
418
}
-
 
419