Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. Template.AddClass.rendered = function(){
  2. $('.datepicker').datetimepicker({
  3. format: 'MM/DD/YYYY',
  4. icons: {
  5. time: "fa fa-clock-o",
  6. date: "fa fa-calendar",
  7. up: "fa fa-chevron-up",
  8. down: "fa fa-chevron-down",
  9. previous: 'fa fa-chevron-left',
  10. next: 'fa fa-chevron-right',
  11. today: 'fa fa-screenshot',
  12. clear: 'fa fa-trash',
  13. close: 'fa fa-remove',
  14. inline: true
  15. }
  16. });
  17.  
  18. $('.timepicker').datetimepicker({
  19. // format: 'H:mm', // use this format if you want the 24hours timepicker
  20. format: 'h:mm A', //use this format if you want the 12hours timpiecker with AM/PM toggle
  21. icons: {
  22. time: "fa fa-clock-o",
  23. date: "fa fa-calendar",
  24. up: "fa fa-chevron-up",
  25. down: "fa fa-chevron-down",
  26. previous: 'fa fa-chevron-left',
  27. next: 'fa fa-chevron-right',
  28. today: 'fa fa-screenshot',
  29. clear: 'fa fa-trash',
  30. close: 'fa fa-remove',
  31. inline: true
  32.  
  33. }
  34. });
  35. $(".selectpicker").selectpicker();
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement