Subversion Repositories SmartDukaan

Rev

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

Rev 3040 Rev 3057
Line 282... Line 282...
282
 
282
 
283
function load_research_widget(){
283
function load_research_widget(){
284
	if($("#myresearch").length == 0) {
284
	if($("#myresearch").length == 0) {
285
		return;
285
		return;
286
	}
286
	}
-
 
287
	var resitems = $.Storage.get("resitems");
287
	var params = "";
288
	if (resitems == "[]") {
-
 
289
		var emptyResWidgetHtml = '<table border="0" width="100%" cellspacing="1" cellpadding="0" id="research_default">\
-
 
290
	      <tbody>\
-
 
291
	        <tr>\
-
 
292
	          <td align="center">\
-
 
293
	            <b>\
-
 
294
	                  Add items to research\
-
 
295
	                     </b>\
-
 
296
	           </td>\
-
 
297
	         </tr>\
-
 
298
	       </tbody>\
-
 
299
	      </table>';
-
 
300
		$("#myresearch #pane1").html(emptyResWidgetHtml);
-
 
301
		return;
-
 
302
	}
288
	params = "/" + $.Storage.get("resitems");
303
	var params = "/" + resitems;
289
	
304
	
290
	jQuery.ajax({
305
	jQuery.ajax({
291
		type : "GET",
306
		type : "GET",
292
		url : "/myresearch" + params,
307
		url : "/myresearch" + params,
293
		cache: true,
308
		cache: true,
Line 314... Line 329...
314
 
329
 
315
function load_history_widget() {
330
function load_history_widget() {
316
	if($("#browsehistory").length == 0) {
331
	if($("#browsehistory").length == 0) {
317
		return;
332
		return;
318
	}
333
	}
-
 
334
	var histitems = $.Storage.get("histitems");
319
	var params = "";
335
	if (histitems == "[]") {
-
 
336
		$("#browsehistory #pane5").html("");
-
 
337
		return;
-
 
338
	}
320
	params = "/" + $.Storage.get("histitems");
339
	var params = "/" + histitems;
321
	
340
	
322
	jQuery.ajax({
341
	jQuery.ajax({
323
		type: "GET",
342
		type: "GET",
324
		url: "/browse-history" + params,
343
		url: "/browse-history" + params,
325
		cache: true,
344
		cache: true,