Subversion Repositories SmartDukaan

Rev

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

Rev 12661 Rev 12671
Line 278... Line 278...
278
<script type="text/javascript">
278
<script type="text/javascript">
279
$(function(){	
279
$(function(){	
280
$("#amazon-promo-form").live('submit', function(){
280
$("#amazon-promo-form").live('submit', function(){
281
    var fbaPromoStatus = $('#isFbaPromotionActive').val();
281
    var fbaPromoStatus = $('#isFbaPromotionActive').val();
282
	var fbbPromoStatus = $('#isFbbPromotionActive').val();
282
	var fbbPromoStatus = $('#isFbbPromotionActive').val();
283
	if (fbaPromoStatus){
283
	if (fbaPromoStatus=="true"){
284
		var fbaPromoPrice = $('#fbaPromoPrice').val();
284
		var fbaPromoPrice = $('#fbaPromoPrice').val();
285
		var maxFbaSalePrice = $('#fbaMaxSalePrice').val();
285
		var maxFbaSalePrice = $('#fbaMaxSalePrice').val();
286
		
286
		
287
		if (fbaPromoPrice<=0){
287
		if (fbaPromoPrice<=0){
288
			jAlert('Illegal value in Fba Promo Price field', 'ERROR');
288
			jAlert('Illegal value in Fba Promo Price field', 'ERROR');
Line 298... Line 298...
298
			jAlert('Fba Promo Price cant be greater than Fba Max Promo Price', 'ERROR');
298
			jAlert('Fba Promo Price cant be greater than Fba Max Promo Price', 'ERROR');
299
      		return false;
299
      		return false;
300
		}
300
		}
301
	}
301
	}
302
	
302
	
303
	if (fbbPromoStatus){
303
	if (fbbPromoStatus=="true"){
304
		var fbbPromoPrice = $('#fbbPromoPrice').val();
304
		var fbbPromoPrice = $('#fbbPromoPrice').val();
305
		var maxFbbSalePrice = $('#fbbMaxSalePrice').val();
305
		var maxFbbSalePrice = $('#fbbMaxSalePrice').val();
306
		
306
		
307
		if (fbbPromoPrice<=0){
307
		if (fbbPromoPrice<=0){
308
			jAlert('Illegal value in Fbb Promo Price field', 'ERROR');
308
			jAlert('Illegal value in Fbb Promo Price field', 'ERROR');