]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/event_form.tpl
Merge branch '1610-priority-dbclean' of github.com:annando/friendica into 1610-priori...
[friendica.git] / view / theme / frio / templates / event_form.tpl
index 55f73ac8e30a5e8e2ddb72d4820f91e5b8ccdfd2..42d0bb37545bba15ff979581dc141f5c303bc7f9 100644 (file)
@@ -1,5 +1,5 @@
 <script language="javascript" type="text/javascript"
-         src="{{$baseurl}}/view/theme/frio/js/event.js"></script>
+         src="{{$baseurl}}/view/theme/frio/js/event_edit.js"></script>
 <div id="event-form-wrapper">
        <h3 class="heading">{{$title}}</h3>
 
@@ -62,7 +62,7 @@
                        {{* The textarea for the event description *}}
                        <div class="form-group">
                                <div id="event-desc-text"><b>{{$d_text}}</b></div>
-                               <textarea id="comment-edit-text-desc" class="form-control" name="desc" >{{$d_orig}}</textarea>
+                               <textarea id="comment-edit-text-desc" class="form-control text-autosize" name="desc" >{{$d_orig}}</textarea>
                                <ul id="event-desc-text-edit-bb" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
                                        {{* commented out because it isn't implemented yet
                                        <li>
                        {{* The textarea for the event location *}}
                        <div class="form-group">
                                <div id="event-location-text"><b>{{$l_text}}</b></div>
-                               <textarea id="comment-edit-text-loc" class="form-control" name="location">{{$l_orig}}</textarea>
+                               <textarea id="comment-edit-text-loc" class="form-control text-autosize" name="location">{{$l_orig}}</textarea>
                                <ul id="comment-tools-loc" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
                                        {{* commented out because it isn't implemented yet
                                        <li>
        </div>
 </div>
 
-<script>
+<script language="javascript" type="text/javascript">
        $(document).ready( function() {
                // disable finish date input if it isn't available
                enableDisableFinishDate();
                // load bbcode autocomplete for the description textarea
                $('#comment-edit-text-desc, #comment-edit-text-loc').bbco_autocomplete('bbcode');
+
+               // initiale autosize for the textareas
+               autosize($("textarea.text-autosize"));
        });
 </script>
\ No newline at end of file