]> git.mxchange.org Git - friendica.git/commitdiff
testbubble showing post jot-tools on edit page - these are not changed so should...
authorFriendika <info@friendika.com>
Fri, 11 Nov 2011 02:20:25 +0000 (18:20 -0800)
committerFriendika <info@friendika.com>
Fri, 11 Nov 2011 02:20:25 +0000 (18:20 -0800)
include/conversation.php
view/theme/testbubble/jot-header.tpl

index dec70c1a958f4d723bdb3b6ea72a876d890eec9c..b8f855803dc28ea43f3e539c3616d0b676806363 100644 (file)
@@ -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'],
index 4a1526ab5d50c4f1d0885cc066e4ede9df0c437f..62351e17321e17026c610b74e0cfaeaaa60f63ff 100644 (file)
@@ -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();
                         });
                 }