| Line 31... |
Line 31... |
| 31 |
}else{
|
31 |
}else{
|
| 32 |
$('button.confirmcredit').prop( "disabled", false );
|
32 |
$('button.confirmcredit').prop( "disabled", false );
|
| 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', 'margin: 10px 20px 0px 0px;background-color: #5cb85c;color: #fff;');
|
| 37 |
}else{
|
37 |
}else{
|
| 38 |
if($('span#CreditError').html()!=''){
|
38 |
if($('span#CreditError').html()!=''){
|
| 39 |
localStorage.setItem('CreditError',$('span#CreditError').html());
|
39 |
localStorage.setItem('CreditError',$('span#CreditError').html());
|
| 40 |
}
|
40 |
}
|
| 41 |
$('span#CreditError').html('');
|
41 |
$('span#CreditError').html('');
|
| 42 |
$('button.confirmcredit').prop( "disabled", true );
|
42 |
$('button.confirmcredit').prop( "disabled", true );
|
| 43 |
$('button.confirmcredit').attr('style', 'background-color: #B4CAB4');
|
43 |
$('button.confirmcredit').attr('style', 'margin: 10px 20px 0px 0px; background-color: #B4CAB4; color: #fff;');
|
| 44 |
}
|
44 |
}
|
| 45 |
}
|
45 |
}
|
| 46 |
|
46 |
|
| 47 |
if (window.history && window.history.pushState) {
|
47 |
if (window.history && window.history.pushState) {
|
| 48 |
$(window).on('popstate', function() {
|
48 |
$(window).on('popstate', function() {
|