Subversion Repositories SmartDukaan

Rev

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

Rev 24040 Rev 24043
Line 32... Line 32...
32
        updateTotalAmount();
32
        updateTotalAmount();
33
    });
33
    });
34
 
34
 
35
    $('input[name$=item_id]').live('change', function() {
35
    $('input[name$=item_id]').live('change', function() {
36
    	var count=0;
36
    	var count=0;
37
    	$(this).closest('table>tr').each(function(el){
37
    	$(this).closest('table').find('tr').each(function(el){
38
    		if($(el).find('input[name=item_id]').val()==$(this).val()) {
38
    		if($(el).find('input[name=item_id]').val()==$(this).val()) {
39
    			count += 1;
39
    			count += 1;
40
    		}
40
    		}
41
    	});
41
    	});
42
    	if(count==2) {
42
    	if(count==2) {