aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/dispy
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-04 18:03:09 -0800
committerfriendica <info@friendica.com>2012-01-04 18:03:09 -0800
commit47edaf9ad79b59d96f908b4501d564e5e63cc210 (patch)
tree635ffc5cd770e2d7f073a2e8c6cc12c2853b7bcc /view/theme/dispy
parentb0c3dc00b9252d896d233747bdd317fb5c360d51 (diff)
downloadvolse-hubzilla-47edaf9ad79b59d96f908b4501d564e5e63cc210.tar.gz
volse-hubzilla-47edaf9ad79b59d96f908b4501d564e5e63cc210.tar.bz2
volse-hubzilla-47edaf9ad79b59d96f908b4501d564e5e63cc210.zip
dynamic title input box - via fabrixxm
Diffstat (limited to 'view/theme/dispy')
-rw-r--r--view/theme/dispy/jot-header.tpl7
-rw-r--r--view/theme/dispy/jot.tpl8
-rw-r--r--view/theme/dispy/style.css13
3 files changed, 24 insertions, 4 deletions
diff --git a/view/theme/dispy/jot-header.tpl b/view/theme/dispy/jot-header.tpl
index 7a1012230..a3464f3f7 100644
--- a/view/theme/dispy/jot-header.tpl
+++ b/view/theme/dispy/jot-header.tpl
@@ -8,6 +8,7 @@ var textlen = 0;
function initEditor(cb) {
if (editor==false) {
$("#profile-jot-text-loading").show();
+ $("#jot-title-desc").show();
tinyMCE.init({
theme : "advanced",
mode : "specific_textareas",
@@ -100,6 +101,12 @@ function initEditor(cb) {
$(this).val("");
initEditor();
});
+
+ $("#jot-title-desc").click(function() {
+ $("#jot-title-desc").hide();
+ $("#jot-title").show();
+ });
+
var uploader = new window.AjaxUpload(
'wall-image-upload',
{ action: 'wall_upload/$nickname',
diff --git a/view/theme/dispy/jot.tpl b/view/theme/dispy/jot.tpl
index a2c883e4b..b340b532b 100644
--- a/view/theme/dispy/jot.tpl
+++ b/view/theme/dispy/jot.tpl
@@ -14,8 +14,11 @@
<input type="hidden" name="return" value="$return_path" />
<input type="hidden" name="location" id="jot-location" value="$defloc" />
<input type="hidden" name="coord" id="jot-coord" value="" />
- <input type="hidden" name="title" id="jot-title" value="" />
<input type="hidden" name="post_id" value="$post_id" />
+ <div id="jot-title-wrapper">
+ <span id="jot-title-desc" style="display: none;">$addtitle</span>
+ <input type="text" name="title" id="jot-title" value="" style="display: none;" />
+ </div>
<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>
@@ -49,9 +52,6 @@
<div id="profile-nolocation-wrapper" class="jot-tool" style="display: none;" >
<a id="profile-nolocation" class="icon border noglobe" title="$noloc" onclick="jotClearLocation(); return false;"></a>
</div>
- <div id="profile-title-wrapper" class="jot-tool" style="display: none;" >
- <a id="profile-title" class="icon border article" title="$title" onclick="jotTitle(); return false;"></a>
- </div>
<div id="profile-jot-plugin-wrapper" style="display: none;">
$jotplugins
diff --git a/view/theme/dispy/style.css b/view/theme/dispy/style.css
index 0d8b54698..59425a05a 100644
--- a/view/theme/dispy/style.css
+++ b/view/theme/dispy/style.css
@@ -342,6 +342,19 @@ aside #viewcontacts { text-align: right;}
#acl-deny-text-end { clear: both; }
+#jot-title-desc {
+ color: #cccccc;
+}
+
+#jot-title-wrapper {
+ margin-bottom: 5px;
+}
+
+#jot-title {
+ border: 1px solid #cccccc;
+ width: 530px;
+}
+
/**
* section