Skip to content

Instantly share code, notes, and snippets.

@Tocacar
Created March 14, 2012 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tocacar/2037690 to your computer and use it in GitHub Desktop.
Save Tocacar/2037690 to your computer and use it in GitHub Desktop.
Implementing Calendar Plugin
detailsBtn = new Y.Button({
srcNode: Y.one('#button_edit_details')
});
detailsBtn.getNode().on('click', function(e){
e.preventDefault();
//retrieve & display relevant form partial from server
var requestData = new Y.AMS.PanelComment({
panelType: 'form',
panelTitle: 'Edit Details',
updateNode: detailsNode,
getUrl : e.currentTarget.getAttribute('href')
});
Y.on("contentready", function () {
Y.AMS.Calendar.plugAllCalendars();
}, '#calendar');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment