Advertisement
Guest User

main.js

a guest
Apr 30th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. $(document).ready(function() {
  2. $(".data-table").DataTable();
  3. $(".date-picker").datepicker({
  4. format: 'yyyy-mm-dd'
  5. });
  6.  
  7. $("#new-review").click(function() {
  8. $(".all-reviews").fadeOut(function() {
  9. $(".new-reviews").fadeIn();
  10. });
  11. });
  12.  
  13. $("#all-reviews").click(function() {
  14. $(".new-reviews").fadeOut(function() {
  15. $(".all-reviews").fadeIn();
  16. });
  17. });
  18. $("#all-reservations").click(function() {
  19. $(".current-reservations").fadeOut(function() {
  20. $(".all-reservations").fadeIn();
  21. });
  22. });
  23.  
  24.  
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement