Commit 46b96c07 by nadeem.qasmi

today fixes again some bugs

parent 9d023cb2
Pipeline #500 passed with stage
in 0 seconds
...@@ -173,6 +173,7 @@ ...@@ -173,6 +173,7 @@
width: 100%; width: 100%;
border: 0px; border: 0px;
margin-top: 30px; margin-top: 30px;
margin-bottom: 40px;
} }
.bootstrap-iso .payment-course-button:hover { .bootstrap-iso .payment-course-button:hover {
background-color: #2898c4; background-color: #2898c4;
......
...@@ -340,7 +340,26 @@ ...@@ -340,7 +340,26 @@
$("#promo-loader").hide(); $("#promo-loader").hide();
$("#pcode-value").attr('disabled', false); $("#pcode-value").attr('disabled', false);
if(data < 0) { if(data < 0) {
alert('Invalid Promo Code');
$.toast({
text: "Invalid Promo Code", // Text that is to be shown in the toast
heading: '', // Optional heading to be shown on the toast
icon: 'error', // Type of toast icon
showHideTransition: 'fade', // fade, slide or plain
allowToastClose: true, // Boolean value true or false
hideAfter: 4000, // false to make it sticky or number representing the miliseconds as time after which toast needs to be hidden
stack: 5, // false if there should be only one toast at a time or a number representing the maximum number of toasts to be shown at a time
position: 'top-right', // bottom-left or bottom-right or bottom-center or top-left or top-right or top-center or mid-center or an object representing the left, right, top, bottom values
textAlign: 'left', // Text alignment i.e. left, right or center
loader: false, // Whether to show loader or not. True by default
loaderBg: '#9EC600', // Background color of the toast loader
beforeShow: function () {}, // will be triggered before the toast is shown
afterShown: function () {}, // will be triggered after the toat has been shown
beforeHide: function () {}, // will be triggered before the toast gets hidden
afterHidden: function () {} // will be triggered after the toast has been hidden
});
$("#pcode-value").val(''); $("#pcode-value").val('');
} else { } else {
promoValue = parseInt(data); promoValue = parseInt(data);
...@@ -351,13 +370,13 @@ ...@@ -351,13 +370,13 @@
}); });
$("#accepted_terms").on('click', function() { // $("#accepted_terms").on('click', function() {
if($(this).is(':checked')) { // if($(this).is(':checked')) {
$("#lmsProcessPayment").prop('disabled', false); // $("#lmsProcessPayment").prop('disabled', false);
} else { // } else {
$("#lmsProcessPayment").attr('disabled', true); // $("#lmsProcessPayment").attr('disabled', true);
} // }
}); // });
})(jQuery); })(jQuery);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment