Subversion Repositories SmartDukaan

Rev

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

Rev 9231 Rev 9352
Line 605... Line 605...
605
            	
605
            	
606
            }
606
            }
607
        });
607
        });
608
	});
608
	});
609
	
609
	
610
});
-
 
611
610
	$('#sendProductFeedForm').live('submit', function() {
-
 
611
		var catalogItemId = $("input[name='cataLogItemId']").val();
-
 
612
		if(catalogItemId==null || catalogItemId=="")
-
 
613
		{
-
 
614
			alert("Please enter Catalog Item Id");
-
 
615
			$('input[name=cataLogitemId]').focus();
-
 
616
			return false;
-
 
617
		}
-
 
618
		sendProductFeeds($(this).serialize());
-
 
619
		return false;
-
 
620
	});
-
 
621
	
-
 
622
	$('#sendProductFeedLink').live('click', function() {
-
 
623
		$("div#sendProductFeedDiv").show();
-
 
624
		$.colorbox({
-
 
625
            inline : true,
-
 
626
            width : "400px",
-
 
627
            height : "140px",
-
 
628
            href : "div#sendProductFeedDiv",
-
 
629
            onClosed : function() {
-
 
630
                $("div#sendProductFeedDiv").hide();
-
 
631
            }
-
 
632
		});
-
 
633
	});
-
 
634
	
-
 
635
});
-
 
636
 
-
 
637
function sendProductFeeds(params) {
-
 
638
	$.ajax({
-
 
639
		type : "POST",
-
 
640
		url : "/Support/google-adwords!sendProductFeeds",
-
 
641
		data : params,
-
 
642
		success : function(response) {
-
 
643
			alert(response);
-
 
644
			$.colorbox.close();
-
 
645
		},
-
 
646
		error : function() {
-
 
647
			alert("Error in sending products feeds");
-
 
648
			$.colorbox.close();
-
 
649
		}
-
 
650
	});
-
 
651
}
-
 
652
612
653