Skip to content
Discussion options

You must be logged in to vote

Your setting it up incorrectly when using translations, which is causing the options your passing to be ignored.

Use the following:

  <script>
        var calendarInstance = new calendarJs( "calendar", __TRANSLATION_OPTIONS );

        calendarInstance.setOptions( {
           events: {
              onEventsAdded:  onMyEventsAdded,
              onEventAdded:  onMyEventAdded
           }
        } );

        function onMyEventsAdded( events ) {
           // The events added
        }

        function onMyEventAdded( event ) {
           // The event added
        }
    </script>

Replies: 9 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@andre0ani
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by william-troup
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants