diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-07-20 11:08:42 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-07-20 11:08:42 +0200 |
commit | 7a069c1438eb0c6b84e9e93985722a34b4bca4e1 (patch) | |
tree | be755ce3f75da6efb77fb5831898eaf72e201dbd /view/jot.tpl | |
parent | 11d1d309c28b7c09ae566c2a9e36bea0c5aee85a (diff) | |
download | volse-hubzilla-7a069c1438eb0c6b84e9e93985722a34b4bca4e1.tar.gz volse-hubzilla-7a069c1438eb0c6b84e9e93985722a34b4bca4e1.tar.bz2 volse-hubzilla-7a069c1438eb0c6b84e9e93985722a34b4bca4e1.zip |
Load tinyMCE on post editor only if needed.
Diffstat (limited to 'view/jot.tpl')
-rw-r--r-- | view/jot.tpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/view/jot.tpl b/view/jot.tpl index 43c20b90e..aa9892cbb 100644 --- a/view/jot.tpl +++ b/view/jot.tpl @@ -15,10 +15,12 @@ <input type="hidden" name="title" id="jot-title" value="" /> <input type="hidden" name="post_id" value="$post_id" /> - <textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >$content</textarea> + <img id="profile-jot-text-loading" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" /> + <textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >{{ if $content }}$content{{ else }}$share{{ endif }}</textarea> + {{ if $content }}<script>initEditor();</script>{{ endif }} -<div id="profile-jot-submit-wrapper" > +<div id="profile-jot-submit-wrapper" style="display:none"> <input type="submit" id="profile-jot-submit" name="submit" value="$share" /> <div id="profile-upload-wrapper" style="display: $visitor;" > <div id="wall-image-upload-div" ><a href="#" onclick="return false;" id="wall-image-upload" class="icon camera" title="$upload"></a></div> |