aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-04 20:09:14 -0800
committerfriendica <info@friendica.com>2012-01-04 20:09:14 -0800
commitf1c7db593cbbba6a1eec84e1f8c2681dbc94a97f (patch)
tree3f6cac02af6a9b1b904677dc30da4d4bdf662751
parent47edaf9ad79b59d96f908b4501d564e5e63cc210 (diff)
downloadvolse-hubzilla-f1c7db593cbbba6a1eec84e1f8c2681dbc94a97f.tar.gz
volse-hubzilla-f1c7db593cbbba6a1eec84e1f8c2681dbc94a97f.tar.bz2
volse-hubzilla-f1c7db593cbbba6a1eec84e1f8c2681dbc94a97f.zip
better title handling (duepuntozero only at this time)
-rw-r--r--view/jot-header.tpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index f35cbee17..829629f44 100644
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -103,6 +103,8 @@ function initEditor(cb){
<script type="text/javascript" src="js/ajaxupload.js" ></script>
<script>
var ispublic = '$ispublic';
+ var addtitle = '$addtitle';
+
$(document).ready(function() {
/* enable tinymce on focus */
@@ -112,9 +114,17 @@ function initEditor(cb){
initEditor();
});
+ $("#jot-title").mouseout(function() {
+ $("#jot-title").hide();
+ var ttl = $("#jot-title").val();
+ $("#jot-title-desc").html((ttl.length) ? "<strong>" + ttl + "</strong>" : addtitle );
+ $("#jot-title-desc").show();
+ });
+
$("#jot-title-desc").click(function() {
$("#jot-title-desc").hide();
$("#jot-title").show();
+ $("#jot-title").focus();
});
var uploader = new window.AjaxUpload(