Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add placeholder to message field in quick reply #4705 Port K50 #4749

Merged
merged 1 commit into from Oct 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -123,7 +123,7 @@ class="inputbox span12" maxlength="35" value="" required/>
}
else
{
echo '<textarea class="span12 qreply" id="kbbcode-message" name="message" rows="6" cols="60"></textarea>';
echo '<textarea class="span12 qreply" id="kbbcode-message" name="message" rows="6" cols="60" placeholder="' . JText::_('COM_KUNENA_ENTER_MESSAGE') .'"></textarea>';
} ?>
</div>

Expand Down
Expand Up @@ -145,7 +145,7 @@ class="inputbox span12" maxlength="45" value="" required/>
}
else
{
echo '<textarea class="span12 qreply" id="kbbcode-message" name="message" rows="6" cols="60"></textarea>';
echo '<textarea class="span12 qreply" id="kbbcode-message" name="message" rows="6" cols="60" placeholder="' . JText::_('COM_KUNENA_ENTER_MESSAGE') .'"></textarea>';
} ?>
</div>

Expand Down
Expand Up @@ -23,6 +23,7 @@
$category = isset($this->category) ? $this->category : $message->getCategory();
$config = isset($this->config) ? $this->config : KunenaFactory::getConfig();
$me = isset($this->me) ? $this->me : KunenaUserHelper::getMyself();
$editor = $template->params->get('editor');

$this->addScript('assets/js/edit.js');

Expand Down Expand Up @@ -105,7 +106,14 @@ class="inputbox col-md-12 form-control" maxlength="35" value="" required/>
<label class="col-md-12 control-label">
<?php echo JText::_('COM_KUNENA_MESSAGE'); ?>:
</label>
<textarea class="qreply form-control" id="kbbcode-message" name="message" rows="6" cols="60"></textarea>
<?php if ($editor == 1)
{
echo $this->subLayout('Widget/Editor')->setLayout('wysibb_quick')->set('message', $this->message)->set('config', $this->config);
}
else
{
echo '<textarea class="qreply form-control" id="kbbcode-message" name="message" rows="6" cols="60" placeholder="' . JText::_('COM_KUNENA_ENTER_MESSAGE') . '"></textarea>';
} ?>
</div>

<?php if ($topic->isAuthorised('subscribe')) : ?>
Expand Down
Expand Up @@ -142,7 +142,7 @@ class="inputbox col-md-12 form-control" maxlength="45" value="" required/>
}
else
{
echo '<textarea class="qreply form-control" id="kbbcode-message" name="message" rows="6" cols="60"></textarea>';
echo '<textarea class="qreply form-control" id="kbbcode-message" name="message" rows="6" cols="60" placeholder="' . JText::_('COM_KUNENA_ENTER_MESSAGE') . '"></textarea>';
} ?>
</div>

Expand Down