Subversion Repositories SmartDukaan

Rev

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

Rev 5639 Rev 5738
Line 53... Line 53...
53
					
53
					
54
					$.each(feedback, function(source, feedback_instruction){
54
					$.each(feedback, function(source, feedback_instruction){
55
						
55
						
56
						var td = $(tr).children('td[source=' + source + ']')[0];
56
						var td = $(tr).children('td[source=' + source + ']')[0];
57
						
57
						
-
 
58
						//if($(td).hasClass('conflict'))	
58
						if($(td).hasClass('conflict'))	updateCellWithFeedback(td, feedback_instruction);
59
						updateCellWithFeedback(td, feedback_instruction);
59
					});
60
					});
60
					markBestPrice(tr);
61
					markBestPrice(tr);
61
				});
62
				});
62
				updateWithSecondaryCrawledData();
63
				updateWithSecondaryCrawledData();
63
			}
64
			}
Line 89... Line 90...
89
	}
90
	}
90
	
91
	
91
	function lookupInfoForItem(data, itemName)	{
92
	function lookupInfoForItem(data, itemName)	{
92
		var info = null;
93
		var info = null;
93
		
94
		
-
 
95
		try {
94
		$.each(data, function(index, item){
96
			$.each(data, function(index, item){
95
			
97
				
96
			if (item.name == itemName)	{
98
				if (item.name == itemName)	{
97
				info = {name: item.name, price: item.price, url: item.url};
99
					info = {name: item.name, price: item.price, url: item.url};
98
			}
100
				}
99
		});
101
			});
-
 
102
		} catch(err) {
-
 
103
		}
100
		return info;
104
			return info;
-
 
105
		
101
	}
106
	}
102
 
107
 
103
	$('tbody tr').each(function(index, e)	{
108
	$('tbody tr').each(function(index, e)	{
104
 		var class_tr = index % 2 == 0 ? 'even' : 'odd';
109
 		var class_tr = index % 2 == 0 ? 'even' : 'odd';
105
 		$(e).addClass(class_tr);
110
 		$(e).addClass(class_tr);