Subversion Repositories SmartDukaan

Rev

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

Rev 4210 Rev 4276
Line 297... Line 297...
297
	    }
297
	    }
298
	});
298
	});
299
}
299
}
300
 
300
 
301
function load_research_widget(){
301
function load_research_widget(){
-
 
302
	var myResearchWidgetContainer = $("#myresearch");
302
	if($("#myresearch").length == 0) {
303
	if($(myResearchWidgetContainer).length == 0) {
303
		return;
304
		return;
304
	}
305
	}
305
	var resitems = $.Storage.get("resitems");
306
	var resitems = $.Storage.get("resitems");
306
	if (resitems == "[]") {
307
	if (resitems == "[]") {
307
		var emptyResWidgetHtml = '<table border="0" width="100%" cellspacing="1" cellpadding="0" id="research_default">\
308
		var emptyResWidgetHtml = '<table border="0" width="100%" cellspacing="1" cellpadding="0" id="research_default">\
308
	      <tbody>\
309
	      <tbody>\
309
	        <tr>\
310
	        <tr>\
310
	          <td align="center">\
-
 
311
	            <b>\
-
 
312
	                  Add items to compare list\
311
	          <td align="center"><b>Add items to compare list</b></td>\
313
	                     </b>\
-
 
314
	           </td>\
-
 
315
	         </tr>\
312
	         </tr>\
316
	       </tbody>\
313
	       </tbody>\
317
	      </table>';
314
	      </table>';
318
		$("#myresearch .common-widget-content-area").html(emptyResWidgetHtml);
315
		$(myResearchWidgetContainer).find(".common-widget-content-area").html(emptyResWidgetHtml);
-
 
316
		$(myResearchWidgetContainer).children(".common-widget-top-bar").trigger('click');
319
		return;
317
		return;
320
	}
318
	}
321
	var params = "/" + resitems;
319
	var params = "/" + resitems;
322
	
320
	
323
	jQuery.ajax({
321
	jQuery.ajax({
Line 344... Line 342...
344
	    }
342
	    }
345
	});
343
	});
346
}
344
}
347
 
345
 
348
function load_history_widget() {
346
function load_history_widget() {
-
 
347
	
-
 
348
	var browseHistoryWidgetContainer = $("#browsehistory");
-
 
349
	
349
	if($("#browsehistory").length == 0) {
350
	if($(browseHistoryWidgetContainer).length == 0) {
350
		return;
351
		return;
351
	}
352
	}
352
	var histitems = $.Storage.get("histitems");
353
	var histitems = $.Storage.get("histitems");
353
	if (histitems == "[]") {
354
	if (histitems == "[]") {
354
		$("#browsehistory .common-widget-content-area").html("");
355
		$(browseHistoryWidgetContainer).find(".common-widget-content-area").html("");
-
 
356
		$(browseHistoryWidgetContainer).children('.common-widget-top-bar').trigger('click');
355
		return;
357
		return;
356
	}
358
	}
357
	var params = "/" + histitems;
359
	var params = "/" + histitems;
358
	
360
	
359
	jQuery.ajax({
361
	jQuery.ajax({