Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.6 KiB

5 years ago
  1. $(function(){
  2. $("#wizard").steps({
  3. headerTag: "h4",
  4. bodyTag: "section",
  5. transitionEffect: "fade",
  6. enableAllSteps: true,
  7. transitionEffectSpeed: 300,
  8. labels: {
  9. next: "Next",
  10. previous: "Back"
  11. },
  12. onStepChanging: function (event, currentIndex, newIndex) {
  13. if ( newIndex === 1 ) {
  14. $('.steps').addClass('step-2');
  15. } else {
  16. $('.steps').removeClass('step-2');
  17. }
  18. if ( newIndex === 2 ) {
  19. $('.steps').addClass('step-3');
  20. } else {
  21. $('.steps').removeClass('step-3');
  22. }
  23. return true;
  24. }
  25. });
  26. // Custom Jquery Steps
  27. $('.forward').click(function(){
  28. $("#wizard").steps('next');
  29. })
  30. $('.backward').click(function(){
  31. $("#wizard").steps('previous');
  32. })
  33. // Select
  34. $('html').click(function() {
  35. $('.select .dropdown').hide();
  36. });
  37. $('.select').click(function(event){
  38. event.stopPropagation();
  39. });
  40. $('.select .select-control').click(function(){
  41. $(this).parent().next().toggle().toggleClass('active');
  42. })
  43. $('.select .dropdown li').click(function(){
  44. $(this).parent().toggle();
  45. var text = $(this).attr('rel');
  46. $(this).parent().prev().find('div').text(text);
  47. })
  48. // Payment
  49. $('.payment-block .payment-item').click(function(){
  50. $('.payment-block .payment-item').removeClass('active');
  51. $(this).addClass('active');
  52. })
  53. // Date Picker
  54. var dp1 = $('#dp1').datepicker().data('datepicker');
  55. })