Subversion Repositories SmartDukaan

Rev

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

Rev 22956 Rev 23340
Line 84... Line 84...
84
             });
84
             });
85
             return false; // required to block normal submit since you used ajax
85
             return false; // required to block normal submit since you used ajax
86
         }
86
         }
87
	});
87
	});
88
    
88
    
89
	$( "input.unitPrice").blur(function() {
89
	$("input.unitPrice").blur(function() {
90
		console.log("unitPrice blur called");
90
		console.log("unitPrice blur called");
91
		var $element = $(this);
91
		var $element = $(this);
92
		var unitPrice = $element.val();
92
		var unitPrice = $element.val();
93
		var mopPrice = parseFloat($(this).attr('mopPrice'));
93
		var mopPrice = parseFloat($(this).attr('mopPrice'));
94
		if(parseFloat(unitPrice) < mopPrice){
94
		if(parseFloat(unitPrice) < mopPrice){