aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/testbubble
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/testbubble
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/testbubble')
-rw-r--r--view/theme/testbubble/jot-header.tpl8
-rw-r--r--view/theme/testbubble/jot.tpl9
-rw-r--r--view/theme/testbubble/style.css14
3 files changed, 27 insertions, 4 deletions
diff --git a/view/theme/testbubble/jot-header.tpl b/view/theme/testbubble/jot-header.tpl
index 62351e173..dba6cfd2b 100644
--- a/view/theme/testbubble/jot-header.tpl
+++ b/view/theme/testbubble/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",
@@ -122,6 +123,13 @@ 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/testbubble/jot.tpl b/view/theme/testbubble/jot.tpl
index 7ccaf2aa2..dce5fb616 100644
--- a/view/theme/testbubble/jot.tpl
+++ b/view/theme/testbubble/jot.tpl
@@ -14,9 +14,13 @@
<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>
{{ if $content }}<script>initEditor();</script>{{ endif }}
@@ -42,9 +46,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-submit-wrapper" style="display:none;padding-left: 400px;">
<input type="submit" id="profile-jot-submit" name="submit" value="$share" />
diff --git a/view/theme/testbubble/style.css b/view/theme/testbubble/style.css
index d1d344ef9..5c31f2f41 100644
--- a/view/theme/testbubble/style.css
+++ b/view/theme/testbubble/style.css
@@ -744,6 +744,20 @@ ul .sidebar-group-li .icon{
#profile-jot-submit-wrapper {
}
+#jot-title-desc {
+ color: #cccccc;
+}
+
+#jot-title-wrapper {
+ margin-bottom: 5px;
+}
+
+#jot-title {
+ border: 1px solid #cccccc;
+ width: 460px;
+}
+
+
#profile-jot-perms, #profile-jot-submit {
width: 60px;
font-size: 12px;