Created
March 14, 2012 16:33
-
-
Save Tocacar/2037690 to your computer and use it in GitHub Desktop.
Implementing Calendar Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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