16 lines
408 B
JavaScript
16 lines
408 B
JavaScript
// Generated by CoffeeScript 1.12.6
|
|
(function() {
|
|
"use strict";
|
|
App.Questions = {
|
|
nestedQuestions: function() {
|
|
return $(".js-questions").on("cocoon:after-insert", function(e, new_question) {
|
|
return App.Answers.initializeAnswers($(new_question).find(".js-answers"));
|
|
});
|
|
},
|
|
initialize: function() {
|
|
return App.Questions.nestedQuestions();
|
|
}
|
|
};
|
|
|
|
}).call(this);
|