Subversion Repositories SmartDukaan

Rev

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

Rev 3034 Rev 3037
Line 153... Line 153...
153
			$("#shipping_time").html(msg);
153
			$("#shipping_time").html(msg);
154
		}
154
		}
155
	});
155
	});
156
}
156
}
157
 
157
 
158
function load_accessories_widget(){
-
 
159
	if($("#accessories").length == 0) {
-
 
160
		return;
-
 
161
	}
-
 
162
	jQuery.ajax({
-
 
163
		type : "GET",
-
 
164
		url : "/related-accessories/" + $("#product_id").val(),
-
 
165
		cache: true,
-
 
166
		success : function(html) {
-
 
167
   		    $("#accessories").html(html);
-
 
168
 
-
 
169
		    // Product Title
-
 
170
		    $("#accessories table td div a").each(function() {
-
 
171
					$(this).truncate({addtitle : true});
-
 
172
		    });
-
 
173
 
-
 
174
		    // Product Price
-
 
175
		    $("#accessories table td div div.price").each(function() {
-
 
176
					$(this).truncate({addtitle : true});
-
 
177
			});
-
 
178
 
-
 
179
		    // Product Details
-
 
180
		    $("#accessories table td div div.text").each(function() {
-
 
181
					$(this).truncate( {addtitle : true});
-
 
182
			});
-
 
183
	    }
-
 
184
	});
-
 
185
}
-