Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Survey = {
- getSurveyCategoryMenu: function() {
- if($('survey_successful_false').checked == true) {
- new Ajax.Request('/surveys/menu/negative', {method: 'get'});
- }
- else {
- new Ajax.Request('/surveys/menu/positive', {method: 'get'});
- }
- }
- }
- Event.addBehavior({
- '#survey_successful_false:click, #survey_successful_true:click': function() {
- Survey.getSurveyCategoryMenu();
- }
- })
Add Comment
Please, Sign In to add comment