aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-10 18:20:25 -0800
committerFriendika <info@friendika.com>2011-11-10 18:20:25 -0800
commit199da623ff8895e7aaec27599abb09dadd110d47 (patch)
treecf702928d37d25d533e4c4516cf5c80cb0647c8f
parentc66b886d7e47f6721d2f3eb39cae8599001f79d9 (diff)
downloadvolse-hubzilla-199da623ff8895e7aaec27599abb09dadd110d47.tar.gz
volse-hubzilla-199da623ff8895e7aaec27599abb09dadd110d47.tar.bz2
volse-hubzilla-199da623ff8895e7aaec27599abb09dadd110d47.zip
testbubble showing post jot-tools on edit page - these are not changed so should not be visible
-rw-r--r--include/conversation.php1
-rw-r--r--view/theme/testbubble/jot-header.tpl26
2 files changed, 15 insertions, 12 deletions
diff --git a/include/conversation.php b/include/conversation.php
index dec70c1a9..b8f855803 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -742,6 +742,7 @@ function status_editor($a,$x, $notes_cid = 0) {
$tpl = get_markup_template('jot-header.tpl');
$a->page['htmlhead'] .= replace_macros($tpl, array(
+ '$newpost' => 'true',
'$baseurl' => $a->get_baseurl(),
'$geotag' => $geotag,
'$nickname' => $x['nickname'],
diff --git a/view/theme/testbubble/jot-header.tpl b/view/theme/testbubble/jot-header.tpl
index 4a1526ab5..62351e173 100644
--- a/view/theme/testbubble/jot-header.tpl
+++ b/view/theme/testbubble/jot-header.tpl
@@ -83,18 +83,20 @@ function initEditor(cb) {
});
ed.onInit.add(function(ed) {
ed.pasteAsPlainText = true;
- $("#profile-jot-text-loading").hide();
- $("#profile-jot-submit-wrapper").show();
- $("#profile-upload-wrapper").show();
- $("#profile-attach-wrapper").show();
- $("#profile-link-wrapper").show();
- $("#profile-video-wrapper").show();
- $("#profile-audio-wrapper").show();
- $("#profile-location-wrapper").show();
- $("#profile-nolocation-wrapper").show();
- $("#profile-title-wrapper").show();
- $("#profile-jot-plugin-wrapper").show();
- $("#character-counter").show();
+ $("#profile-jot-text-loading").hide();
+ $("#profile-jot-submit-wrapper").show();
+ {{ if $newpost }}
+ $("#profile-upload-wrapper").show();
+ $("#profile-attach-wrapper").show();
+ $("#profile-link-wrapper").show();
+ $("#profile-video-wrapper").show();
+ $("#profile-audio-wrapper").show();
+ $("#profile-location-wrapper").show();
+ $("#profile-nolocation-wrapper").show();
+ $("#profile-title-wrapper").show();
+ $("#profile-jot-plugin-wrapper").show();
+ {{ endif }}
+ $("#character-counter").show();
if (typeof cb!="undefined") cb();
});
}