Rev 11015 | Blame | Compare with Previous | Last modification | View Log | RSS feed
$(function() {$(".showCompetitionAnalysis").live('click', function() {$("tr").removeClass("diffColor");$("td").css("background-color","");$(this).parents("tr").addClass("diffColor");$('tr.diffColor').children('td').css('backgroundColor', '#7F98FA');});});$(function(){$(".next").live('click', function() {var start = $( ".valueStart" ).text();var end = $( ".valueEnd" ).text();var itemId = $('.itemId').text();getNextItems(start,end,itemId);});$(".previous").live('click', function() {var start = $( ".valueStart" ).text();var end = $( ".valueEnd" ).text();var pre = end - 20;var itemId = $('.itemId').text();getPreviousItems(start,end,pre,itemId);});});$(function(){$("#fetchLiveData").live('click', function() {var supc_code = $('.supcCode').text();showData(supc_code);});});$(function(){$("#closeDiv").live('click', function() {$('#hidden-data').hide();});});$(function(){$('.expandRow').live('click', function(){endDate = $(this).parents("td").attr("dateVal");startDate = $(this).parents("td").attr("dateValNext");expanded = $(this).parents("td").attr("expanded");oneTime = $(this).parents("td").attr("oneTime");if (expanded=="1"){$(this).parents('tr').removeClass();$("td").css("background-color","");$('.'+endDate).hide();$(this).children('img').attr('src', '/Support/images/add_green_button.png');$(this).parents("td").attr('expanded', '0');return true;}if (oneTime=="1"){$(this).parents("tr").addClass("diffColor");$('.'+endDate).show();$('tr.diffColor').children('td').css('backgroundColor', '#7F98FA');$("td").css("background-color","");$(this).children('img').attr('src', '/Support/images/minus_green_button.png');$(this).parents("td").attr('expanded', '1');return true;}$("tr").removeClass("diffColor");$("td").css("background-color","");$(this).parents("tr").addClass("diffColor");var row = $(this).closest('tr');var itemId = $('.itemId').text();getDuplicateRecords(startDate,endDate,itemId,row);$(this).parents("td").attr('expanded', '1');$(this).parents("td").attr('oneTime', '1');$(this).children('img').attr('src', '/Support/images/minus_green_button.png');});});//$(function() {//$( "#start_date" ).datepicker();//$( "#end_date" ).datepicker();////$("#search_item").live('click', function() {////var catalogId = $('#catalog_id').val();////var start_date= $('#start_date').val();////var end_date= $('#end_date').val();////loadSearchInfo("search-result", catalogId, start_date, end_date);////});//});