Subversion Repositories SmartDukaan

Rev

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

Rev 1333 Rev 1372
Line 228... Line 228...
228
  }
228
  }
229
  if(document.getElementById("#datepicker")) {
229
  if(document.getElementById("#datepicker")) {
230
    $("#datepicker").datepicker({ });
230
    $("#datepicker").datepicker({ });
231
  }
231
  }
232
  // Research "delete" Item
232
  // Research "delete" Item
233
  $('.add-research-pane5').click(function() {
233
  $('.add-research-pane5').live('click', function() {
234
    addResearch('pane5', 'multi');
234
    addResearch('pane5', 'multi');
235
  });
235
  });
236
  $('.add-to-cart-pane5').click(function() {
236
  $('.add-to-cart-pane5').live('click', function() {
237
    addToCart('pane5', 'multi');
237
    addToCart('pane5', 'multi');
238
  });
238
  });
239
  $('.add-to-cart-pane1').click(function() {
239
  $('.add-to-cart-pane1').live('click', function() {
240
    addToCart('pane1', 'multi');
240
    addToCart('pane1', 'multi');
241
  });
241
  });
242
  $('#signinClass').click(function() {
242
  $('#signinClass').click(function() {
243
    changeSignInClass();
243
    changeSignInClass();
244
  });
244
  });
Line 252... Line 252...
252
    var items = this.id;
252
    var items = this.id;
253
    var itemsarray = items.split('-');
253
    var itemsarray = items.split('-');
254
    addResearch(itemsarray[1], itemsarray[0]);
254
    addResearch(itemsarray[1], itemsarray[0]);
255
    return false;
255
    return false;
256
  });
256
  });
257
  $("#research_delete").click(function(){var research_tot = $("#research_total").val();
257
  $("#research_delete").live('click', function(){var research_tot = $("#research_total").val();
258
  	var seldata = "";
258
  	var seldata = "";
259
	var tot = 0;
259
	var tot = 0;
260
	var saprt = "";
260
	var saprt = "";
261
	var containerdiv = "#pane1";
261
	var containerdiv = "#pane1";
262
	var par = containerdiv + " input[type=checkbox]:checked";
262
	var par = containerdiv + " input[type=checkbox]:checked";
Line 277... Line 277...
277
			data: "productid=" + seldata,
277
			data: "productid=" + seldata,
278
			success: function(msg){
278
			success: function(msg){
279
				jQuery.each(seldata.split("_"), function(intIndex, objValue){
279
				jQuery.each(seldata.split("_"), function(intIndex, objValue){
280
					$("#pane1").find("#" + objValue).fadeOut('slow', function() {
280
					$("#pane1").find("#" + objValue).fadeOut('slow', function() {
281
						$(this).remove();
281
						$(this).remove();
-
 
282
						$.Storage.set("research", $("#myresearch").html());
-
 
283
						if(t === 0)	{
282
						if(t === 0)	$("#research_default").css("display", "block");
284
							$("#research_default").css("display", "block");
-
 
285
						}
283
					});
286
					});
284
				});
287
				});
285
			}
288
			}
286
		});
289
		});
287
	} else	{
290
	} else	{
288
		alert("Please select atleast one product");
291
		alert("Please select atleast one product");
289
	}
292
	}
290
  });
293
  });
-
 
294
  
-
 
295
  if ($.cookie("uid") != $.Storage.get("uid")) {
-
 
296
	  $.Storage.set("uid", $.cookie("uid"));
-
 
297
	  $.Storage.remove("research");
-
 
298
	  $.Storage.remove("history");
-
 
299
  }
-
 
300
 
-
 
301
  if ($.Storage.get("research")) {
-
 
302
	  $("#myresearch").html($.Storage.get("research"));
-
 
303
  }
-
 
304
  else {
-
 
305
	  load_research_widget();
-
 
306
  }
-
 
307
  if ($.Storage.get("history")) {
-
 
308
	  $("#browsehistory").html($.Storage.get("history"));
-
 
309
  }
-
 
310
  else {
-
 
311
	  load_history_widget();
-
 
312
  }
291
});
313
});
292
314