Rev 9447 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
$(function() {$('#sendProductFeedForm').live('submit', function() {var catalogItemId = $("input[name='cataLogItemId']").val();if(catalogItemId==null || catalogItemId==""){alert("Please enter Catalog Item Id");$('input[name=cataLogitemId]').focus();return false;}sendProductFeeds($(this).serialize());return false;});$('#cataLogItemId').keypress(function(e) {var a = [];var k = e.which;for (i = 48; i < 58; i++){{a.push(i);}}if (!(a.indexOf(k)>=0)){e.preventDefault();}});$('#sendProductFeedLink').live('click', function() {$("div#sendProductFeedDiv").show();$('#cataLogItemId').val('');$.colorbox({inline : true,width : "400px",height : "160px",href : "div#sendProductFeedDiv",onClosed : function() {$("div#sendProductFeedDiv").hide();}});});});function sendProductFeeds(params) {$.ajax({type : "POST",url : "/inventory/product-feeds!sendProductFeeds",data : params,success : function(response) {alert(response);$.colorbox.close();},error : function() {alert("Error in sending products feeds");$.colorbox.close();}});}