Subversion Repositories SmartDukaan

Rev

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

Rev 3360 Rev 3830
Line 76... Line 76...
76
 
76
 
77
    $("#query").autocomplete({  autoFocus: true, minLength: 3,
77
    $("#query").autocomplete({  autoFocus: true, minLength: 3,
78
    	source: "/auto-suggest",
78
    	source: "/auto-suggest",
79
    	select: function( event, ui ) {
79
    	select: function( event, ui ) {
80
    		this.value = ui.item.value;
80
    		this.value = ui.item.value;
81
			$('#frmSearch').submit();
81
			$('#formSearch').submit();
82
			return false;
82
			return false;
83
		}
83
		}
84
    });
84
    });
85
    
85
    
86
});
86
});
Line 212... Line 212...
212
                        	   $(tblid).animate({ backgroundColor: "#fcffb3" }, 'slow');
212
                        	   $(tblid).animate({ backgroundColor: "#fcffb3" }, 'slow');
213
                        	   $(tblid).animate({ backgroundColor: "#F5F5F5" }, 'slow');
213
                        	   $(tblid).animate({ backgroundColor: "#F5F5F5" }, 'slow');
214
                           };
214
                           };
215
                           
215
                           
216
                           if(msg == 0){
216
                           if(msg == 0){
217
                                alert( "Product is already in my research" );
217
                                alert( "Product is already in compare list" );
218
                           } else	{
218
                           } else	{
219
                                var t = (research_tot * 1) + (tot * 1);
219
                                var t = (research_tot * 1) + (tot * 1);
220
                                $("#research_total").val(t);
220
                                $("#research_total").val(t);
221
                                if(t > 0)	{
221
                                if(t > 0)	{
222
                                     $("#research_default").css("display","none");
222
                                     $("#research_default").css("display","none");
Line 249... Line 249...
249
    $('html, body').animate({
249
    $('html, body').animate({
250
      scrollTop: $("body").offset().top
250
      scrollTop: $("body").offset().top
251
    }, 0);
251
    }, 0);
252
}
252
}
253
 
253
 
254
function resetShipForm(){
-
 
255
  $('#shipName').val("");
-
 
256
  $('#shipAddress1').val("");
-
 
257
  $('#shipAddress2').val("");
-
 
258
  $('#shipState').val("");
-
 
259
  $('#shipCity').val("");
-
 
260
  $('#shipPin').val("");
-
 
261
  $('#shipPhone').val("");
-
 
262
	$('#newShipAdr').hide();
-
 
263
	scrollWinToTop();
-
 
264
}
-
 
265
 
-
 
266
function changeShipAddress(id){
254
function changeShipAddress(id){
267
  addressId = id.substring(20);
255
  addressId = id.substring(20);
268
 //alert("TODO AJAX request to change shipping address. " + addressId);
256
 //alert("TODO AJAX request to change shipping address. " + addressId);
269
   jQuery.ajax({
257
   jQuery.ajax({
270
      type: "POST",
258
      type: "POST",
Line 319... Line 307...
319
		var emptyResWidgetHtml = '<table border="0" width="100%" cellspacing="1" cellpadding="0" id="research_default">\
307
		var emptyResWidgetHtml = '<table border="0" width="100%" cellspacing="1" cellpadding="0" id="research_default">\
320
	      <tbody>\
308
	      <tbody>\
321
	        <tr>\
309
	        <tr>\
322
	          <td align="center">\
310
	          <td align="center">\
323
	            <b>\
311
	            <b>\
324
	                  Add items to research\
312
	                  Add items to compare list\
325
	                     </b>\
313
	                     </b>\
326
	           </td>\
314
	           </td>\
327
	         </tr>\
315
	         </tr>\
328
	       </tbody>\
316
	       </tbody>\
329
	      </table>';
317
	      </table>';
330
		$("#myresearch #pane1").html(emptyResWidgetHtml);
318
		$("#myresearch .common-widget-content-area").html(emptyResWidgetHtml);
331
		$('#winker0').slideToggle('slow', function(){$("#hdr0").addClass('swapy');});
-
 
332
		return;
319
		return;
333
	}
320
	}
334
	var params = "/" + resitems;
321
	var params = "/" + resitems;
335
	
322
	
336
	jQuery.ajax({
323
	jQuery.ajax({
Line 362... Line 349...
362
	if($("#browsehistory").length == 0) {
349
	if($("#browsehistory").length == 0) {
363
		return;
350
		return;
364
	}
351
	}
365
	var histitems = $.Storage.get("histitems");
352
	var histitems = $.Storage.get("histitems");
366
	if (histitems == "[]") {
353
	if (histitems == "[]") {
367
		$("#browsehistory #pane5").html("");
354
		$("#browsehistory .common-widget-content-area").html("");
368
		return;
355
		return;
369
	}
356
	}
370
	var params = "/" + histitems;
357
	var params = "/" + histitems;
371
	
358
	
372
	jQuery.ajax({
359
	jQuery.ajax({