added javascript to page, got rid of separate index/update actions and moved everything to just index since update was not needed as a separate action.
17 lines
303 B
JavaScript
17 lines
303 B
JavaScript
$(document).ready(function() {
|
|
|
|
var form = $("form");
|
|
|
|
form.find("h3").click(function(){
|
|
var h3 = $(this);
|
|
h3.next().toggle();
|
|
|
|
if(h3.hasClass("close")) {
|
|
h3.removeClass("close");
|
|
}
|
|
else {
|
|
h3.addClass("close");
|
|
}
|
|
});
|
|
});
|
|
|