aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/dispy/jot-header.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-04 20:43:38 -0800
committerfriendica <info@friendica.com>2012-01-04 20:43:38 -0800
commitc5d27c48f5d5e45d119ccf133ebc42678deb8e38 (patch)
tree8bfa0b143e3d23b3448099d67fc16bfe578ab930 /view/theme/dispy/jot-header.tpl
parentdbb59554690d3e77b3816423aab2be610e183cd9 (diff)
downloadvolse-hubzilla-c5d27c48f5d5e45d119ccf133ebc42678deb8e38.tar.gz
volse-hubzilla-c5d27c48f5d5e45d119ccf133ebc42678deb8e38.tar.bz2
volse-hubzilla-c5d27c48f5d5e45d119ccf133ebc42678deb8e38.zip
more title stuff
Diffstat (limited to 'view/theme/dispy/jot-header.tpl')
-rw-r--r--view/theme/dispy/jot-header.tpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/view/theme/dispy/jot-header.tpl b/view/theme/dispy/jot-header.tpl
index a3464f3f7..a30b41825 100644
--- a/view/theme/dispy/jot-header.tpl
+++ b/view/theme/dispy/jot-header.tpl
@@ -102,9 +102,28 @@ function initEditor(cb) {
initEditor();
});
+ $("#jot-title").mouseout(function() {
+ $("#jot-title").hide();
+ var ttl = $("#jot-title").val();
+ $('#jot-title-display').html(ttl);
+ if(ttl.length) {
+ $("#jot-title-display").show();
+ }
+ else {
+ $("#jot-title-desc").show();
+ }
+ });
+
+ $("#jot-title-display").click(function() {
+ $("#jot-title-display").hide();
+ $("#jot-title").show();
+ $("#jot-title").focus();
+ });
+
$("#jot-title-desc").click(function() {
$("#jot-title-desc").hide();
$("#jot-title").show();
+ $("#jot-title").focus();
});
var uploader = new window.AjaxUpload(