//= require jquery_ujs
//= require jquery.autogrowtextarea
//= require jquery.timers
+//= require augment
//= require openlayers
//= require i18n/translations
//= require globals
//= require export
//= require map
//= require menu
+//= require sidebar
/*
* Called as the user scrolls/zooms around to aniplate hrefs of the
$(".richtext_doedit").click(editRichtext);
$(".richtext_dopreview").click(previewRichtext);
});
+
+/*
+ * Forms which have been cached by rails may have he wrong
+ * authenticity token, so patch up any forms with the correct
+ * token taken from the page header.
+ */
+$(document).ready(function () {
+ var auth_token = $("meta[name=csrf-token]").attr("content");
+ $("form input[name=authenticity_token]").val(auth_token);
+});
+
+/*
+ * Enable auto expansion for all text areas
+ */
+$(document).ready(function () {
+ $("textarea").autoGrow();
+});