aboutsummaryrefslogtreecommitdiffstats
path: root/view/jot-header.tpl
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-12-19 18:02:43 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-12-19 18:02:43 +0100
commit16d45e5c13ee03783a62ab35a9989748d8e14711 (patch)
tree6f5d2a548f6394dbc443c7b5adca0a7fd8313bb5 /view/jot-header.tpl
parenta6f3b582939022fae0834e4f62b435f18551c968 (diff)
downloadvolse-hubzilla-16d45e5c13ee03783a62ab35a9989748d8e14711.tar.gz
volse-hubzilla-16d45e5c13ee03783a62ab35a9989748d8e14711.tar.bz2
volse-hubzilla-16d45e5c13ee03783a62ab35a9989748d8e14711.zip
quattro: first work on jot style
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r--view/jot-header.tpl18
1 files changed, 10 insertions, 8 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index ecfed6c42..4186ef78e 100644
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -81,7 +81,7 @@ function initEditor(cb){
ed.onInit.add(function(ed) {
ed.pasteAsPlainText = true;
$("#profile-jot-text-loading").hide();
- $("#profile-jot-submit-wrapper").show();
+ $(".jothidden").show();
if (typeof cb!="undefined") cb();
});
@@ -98,19 +98,21 @@ function initEditor(cb){
}
}
+function enableOnUser(){
+ if (editor) return;
+ $(this).val("");
+ initEditor();
+}
+
</script>
<script type="text/javascript" src="js/ajaxupload.js" ></script>
<script>
var ispublic = '$ispublic';
$(document).ready(function() {
- /* enable tinymce on focus */
- $("#profile-jot-text").focus(function(){
- if (editor) return;
- $(this).val("");
- initEditor();
- });
-
+ /* enable tinymce on focus and click */
+ $("#profile-jot-text").focus(enableOnUser);
+ $("#profile-jot-text").click(enableOnUser);
var uploader = new window.AjaxUpload(
'wall-image-upload',