Subversion Repositories SmartDukaan

Rev

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

Rev 1242 Rev 1372
Line 164... Line 164...
164
                                     $(tblid + " div div.text").truncate({addtitle: true});
164
                                     $(tblid + " div div.text").truncate({addtitle: true});
165
                                     $(tblid).animate({ backgroundColor: "#fcffb3" }, 'slow');
165
                                     $(tblid).animate({ backgroundColor: "#fcffb3" }, 'slow');
166
                                     $(tblid).animate({ backgroundColor: "#F5F5F5" }, 'slow');     
166
                                     $(tblid).animate({ backgroundColor: "#F5F5F5" }, 'slow');     
167
                                }    
167
                                }    
168
                           }
168
                           }
-
 
169
                           $.Storage.set("research", $("#myresearch").html());
169
                           //alert( "Data Saved: " + msg );
170
                           //alert( "Data Saved: " + msg );
170
                      }
171
                      }
171
          });
172
          });
172
          
173
          
173
     }else{
174
     }else{
Line 268... Line 269...
268
  $('#newShipAdr').hide();
269
  $('#newShipAdr').hide();
269
	scrollWinToTop();
270
	scrollWinToTop();
270
 
271
 
271
}
272
}
272
 
273
 
-
 
274
function load_research_widget(){
-
 
275
	jQuery.ajax( {
-
 
276
		type : "GET",
-
 
277
		url : "/myresearch",
-
 
278
		success : function(html) {
-
 
279
		$("#myresearch").html(html);
-
 
280
 
-
 
281
		// Product Title
-
 
282
		$("#myresearch table td div a").each(
-
 
283
				function() {
-
 
284
					$(this).truncate( {
-
 
285
						addtitle : true
-
 
286
					});
-
 
287
				});
-
 
288
 
-
 
289
		// Product Price
-
 
290
		$("#myresearch table td div div.price").each(
-
 
291
				function() {
-
 
292
					$(this).truncate( {
-
 
293
						addtitle : true
-
 
294
					});
-
 
295
				});
-
 
296
 
-
 
297
		// Product Details
-
 
298
		$("#myresearch table td div div.text").each(
-
 
299
				function() {
-
 
300
					$(this).truncate( {
-
 
301
						addtitle : true
-
 
302
					});
-
 
303
				});
-
 
304
		$.Storage.set("research", $("#myresearch").html());		  
-
 
305
	}
-
 
306
	});
-
 
307
}
-
 
308
 
-
 
309
function load_history_widget() {
-
 
310
	jQuery.ajax({
-
 
311
		type: "GET",
-
 
312
		url: "/browse-history",
-
 
313
		success: function(html){
-
 
314
		$("#browsehistory").html(html);
-
 
315
 
-
 
316
		// Product Title
-
 
317
		$("#browsehistory table td div a").each(function(){
-
 
318
			$(this).truncate({addtitle: true}); 
-
 
319
		});
-
 
320
 
-
 
321
		// Product Price
-
 
322
		$("#browsehistory table td div div.price").each(function(){
-
 
323
			$(this).truncate({addtitle: true});
-
 
324
		});
-
 
325
 
-
 
326
		// Product Details
-
 
327
		$("#browsehistory table td div div.text").each(function(){
-
 
328
			$(this).truncate({addtitle: true});
-
 
329
		});
-
 
330
		$.Storage.set("history", $("#browsehistory").html());
-
 
331
	}
-
 
332
	});
-
 
333
}
-
 
334
 
273
// Google analytics.
335
// Google analytics.
274
var _gaq = _gaq || [];
336
var _gaq = _gaq || [];
275
_gaq.push(['_setAccount', 'UA-21662919-1']);
337
_gaq.push(['_setAccount', 'UA-21662919-1']);
276
_gaq.push(['_trackPageview']);
338
_gaq.push(['_trackPageview']);
277
 
339