]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
hide the Whats Up Nickname if notice title enabled
authorEvan Prodromou <evan@status.net>
Fri, 13 Aug 2010 19:22:58 +0000 (12:22 -0700)
committerEvan Prodromou <evan@status.net>
Fri, 13 Aug 2010 19:22:58 +0000 (12:22 -0700)
lib/noticeform.php
plugins/NoticeTitle/NoticeTitlePlugin.php

index 84c20a5b3ff1ed13d49695113b661f74fd67f0ec..514066356933ad0a32400a8b73e74a37b9c9d1fa 100644 (file)
@@ -169,7 +169,8 @@ class NoticeForm extends Form
     function formData()
     {
         if (Event::handle('StartShowNoticeFormData', array($this))) {
-            $this->out->element('label', array('for' => 'notice_data-text'),
+            $this->out->element('label', array('for' => 'notice_data-text',
+                                               'id' => 'notice_data-text-label'),
                                 sprintf(_('What\'s up, %s?'), $this->user->nickname));
             // XXX: vary by defined max size
             $this->out->element('textarea', array('id' => 'notice_data-text',
index 115e1c14cf102a675e0047917d50b6e82b66cb21..18ffed4be29457ecfe200991998eb885d47eef6f 100644 (file)
@@ -137,6 +137,7 @@ class NoticeTitlePlugin extends Plugin
 
     function onStartShowNoticeFormData($form)
     {
+        $form->out->element('style', null, 'label#notice_data-text-label { display: none }');
         $form->out->element('input', array('type' => 'text',
                                            'id' => 'notice_title',
                                            'name' => 'notice_title',