Skip to content

getbento/bentoboxjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reservations

Opens a modal with the right Opentable url. Only supports Opentable currently.

Any a.reserve link triggers the event that opens the modal.

<script type="text/javascript">
$(document).ready(function() {
  Bento.Reservations.initialize();
});
</script>

Forms

All forms on the page get POST to their "action" attribute via ajax.

If successful, div.success inside the form gets displayed. If there is an error, div.error inside the form gets displayed. Html5 form validation works.

<script type="text/javascript">
$(document).ready(function() {
  Bento.Forms.initialize();
});
</script>
<script type="text/javascript">
$(document).ready(function() {
  Bento.Forms.initialize({
    formSelector: '.newsletter-form',
  });
});
</script>

About

JS Library for BentoBox Sites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published