Subversion Repositories SmartDukaan

Rev

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

Rev 18819 Rev 18821
Line 33... Line 33...
33
		var creditAvailable = $("input.css-checkbox:checked").attr('credit_available');
33
		var creditAvailable = $("input.css-checkbox:checked").attr('credit_available');
34
	    if(creditAvailable=='true'){
34
	    if(creditAvailable=='true'){
35
	    	$('button.confirmcredit').prop( "disabled", false );
35
	    	$('button.confirmcredit').prop( "disabled", false );
36
	    	$('button.confirmcredit').attr('style', 'background-color: #5cb85c;color: #fff');
36
	    	$('button.confirmcredit').attr('style', 'background-color: #5cb85c;color: #fff');
37
	    }else{
37
	    }else{
-
 
38
	    	if($('span#CreditError').html()!=''){
-
 
39
	        	localStorage.setItem('CreditError',$('span#CreditError').html());
-
 
40
	        }
-
 
41
	    	$('span#CreditError').html('');
38
	    	$('button.confirmcredit').prop( "disabled", true );
42
	    	$('button.confirmcredit').prop( "disabled", true );
39
	    	$('button.confirmcredit').attr('style', 'background-color: #B4CAB4');
43
	    	$('button.confirmcredit').attr('style', 'background-color: #B4CAB4');
40
	    }
44
	    }
41
	}
45
	}
42
 
46