app/assets/javascripts/collectionHidden.js
// var collectionHidden = {
// setup: function() {
// $('.additional').each(function() {
// var problem = $(this);
// problem.find('.hide_checkbox').click(function() {
// // problem.find('.edit-Collections').show()
// // problem.find('.show_checkbox').show()
// show_behavior('.edit-Collections');
// show_behavior('.show_checkbox');
// $(this).hide();
// return false;
// });
// problem.find('button.collections-more-toggle').click(function(){
// problem.find('.collection-button').each(function(){
// $(this).show();
// })
// $(this).hide();
// //problem.find('.collections-less-toggle').show()
// show_behavior('.collections-less-toggle');
// return false;
// })
// });
// }
// };
// $(collectionHidden.setup);