]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Remove some more reply-placeholder stuff
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 6 Mar 2015 19:42:50 +0000 (20:42 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 6 Mar 2015 19:42:50 +0000 (20:42 +0100)
js/util.js
lib/action.php

index 9001a401c2b373183c1697c06a912db2f4bb4bf1..ceeb1776a9da07cc02e5c36db11fc19278a79592 100644 (file)
@@ -405,16 +405,14 @@ var SN = { // StatusNet
                             if (replyItem.length > 0) {
                                 // If this is an inline reply, remove the form...
                                 var list = form.closest('.threaded-replies');
-                                var placeholder = list.find('.notice-reply-placeholder');
-                                replyItem.remove();
 
                                 var id = $(notice).attr('id');
                                 if ($('#' + id).length == 0) {
-                                    $(notice).insertBefore(placeholder);
+                                    $(notice).insertBefore(replyItem);
                                 } // else Realtime came through before us...
 
-                                // ...and show the placeholder form.
-                                placeholder.show();
+                                alert('reset form now');
+
                             } else if (notices.length > 0 && SN.U.belongsOnTimeline(notice)) {
                                 // Not a reply. If on our timeline, show it at the top!
 
@@ -616,7 +614,7 @@ var SN = { // StatusNet
         NoticeInlineReplyTrigger: function (notice, initialText) {
             // Find the notice we're replying to...
             var id = $($('.notice_id', notice)[0]).text();
-            var replyForm, placeholder;
+            var replyForm;
             var parentNotice = notice;
             var stripForm = true; // strip a couple things out of reply forms that are inline
 
index 66a5c69a719dd009bd00c2b661079300020203d9..f4bbb85f82feac7cc78b2d9d05c10ea53af34c13 100644 (file)
@@ -462,12 +462,6 @@ class Action extends HTMLOutputter // lawsuit
             // TRANS: Localized tooltip for '...' expansion button on overlong remote messages.
             $messages['showmore_tooltip'] = _m('TOOLTIP', 'Show more');
 
-            // TRANS: Inline reply form submit button: submits a reply comment.
-            $messages['reply_submit'] = _m('BUTTON', 'Reply');
-
-            // TRANS: Placeholder text for inline reply form. Clicking in this box will turn it into a mini notice form.
-            $messages['reply_placeholder'] = _m('Write a reply...');
-
             $messages = array_merge($messages, $this->getScriptMessages());
 
             Event::handle('EndScriptMessages', array($this, &$messages));