aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-04 20:35:32 -0800
committerfriendica <info@friendica.com>2012-01-04 20:35:32 -0800
commitdbb59554690d3e77b3816423aab2be610e183cd9 (patch)
tree338554c87407551439dc29e497ac1945c55704a4
parentf1c7db593cbbba6a1eec84e1f8c2681dbc94a97f (diff)
downloadvolse-hubzilla-dbb59554690d3e77b3816423aab2be610e183cd9.tar.gz
volse-hubzilla-dbb59554690d3e77b3816423aab2be610e183cd9.tar.bz2
volse-hubzilla-dbb59554690d3e77b3816423aab2be610e183cd9.zip
bit more improvement on dynamic title
-rw-r--r--view/jot-header.tpl15
-rw-r--r--view/jot.tpl1
-rw-r--r--view/theme/duepuntozero/style.css3
3 files changed, 17 insertions, 2 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index 829629f44..cd04e05af 100644
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -117,10 +117,21 @@ function initEditor(cb){
$("#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-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();
diff --git a/view/jot.tpl b/view/jot.tpl
index cb4eb64d4..66621db5e 100644
--- a/view/jot.tpl
+++ b/view/jot.tpl
@@ -15,6 +15,7 @@
<input type="hidden" name="post_id" value="$post_id" />
<div id="jot-title-wrapper">
<span id="jot-title-desc" style="display: none;">$addtitle</span>
+ <span id="jot-title-display" style="display: none;"></span>
<input type="text" name="title" id="jot-title" value="" style="display: none;" />
</div>
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css
index f3c0e7a90..6ce4c52c0 100644
--- a/view/theme/duepuntozero/style.css
+++ b/view/theme/duepuntozero/style.css
@@ -276,6 +276,9 @@ div.wall-item-content-wrapper.shiny {
#jot-title-wrapper {
margin-bottom: 5px;
}
+#jot-title-display {
+ font-weight: bold;
+}
#jot-title {
border: 1px solid #cccccc;