Skip to content

Commit

Permalink
Disable editing reason, when turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
810 committed Aug 13, 2015
1 parent ae8ab49 commit f912a14
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
Expand Up @@ -243,7 +243,7 @@ class="ks" onclick="kGrowShrinkMessage(-100);"

<!-- Hidden preview placeholder -->
<div id="kbbcode-preview" style="display: none;"></div>
<?php if ($this->message->exists()) : ?>
<?php if ($this->message->exists() && $this->config->editmarkup) : ?>
<div class="clr"> </div>
<fieldset>
<legend><?php echo (JText::_('COM_KUNENA_EDITING_REASON')) ?></legend>
Expand Down
Expand Up @@ -173,7 +173,7 @@
// Show bbcode editor
echo $this->subLayout('Topic/Edit/Editor')->setProperties($this->getProperties());
?>
<?php if ($this->message->exists()) : ?>
<?php if ($this->message->exists() && $this->config->editmarkup) : ?>
<div class="control-group" id="modified_reason">
<label class="control-label"><?php echo(JText::_('COM_KUNENA_EDITING_REASON')) ?></label>

Expand Down
Expand Up @@ -161,6 +161,16 @@
// Show bbcode editor
echo $this->subLayout('Topic/Edit/Editor')->setProperties($this->getProperties());
?>
<?php if ($this->message->exists() && $this->config->editmarkup) : ?>

<div class="control-group">
<label class="control-label"><?php echo(JText::_('COM_KUNENA_EDITING_REASON')) ?></label>

<div class="controls">
<textarea class="input-xxlarge" name="modified_reason" size="40" maxlength="200" type="text" value="<?php echo $this->modified_reason; ?>"></textarea>
</div>
</div>
<?php endif; ?>
<?php if ($this->allowedExtensions) : ?>
<div class="control-group krow<?php echo 1 + $this->k ^= 1; ?>" id="kpost-attachments">
<label class="control-label"></label>
Expand Down
Expand Up @@ -29,17 +29,6 @@
<div class="controls" id="kbbcode-preview" style="display: none;"></div>
</div>

<?php if ($this->message->exists()) : ?>

<div class="control-group">
<label class="control-label"><?php echo(JText::_('COM_KUNENA_EDITING_REASON')) ?></label>

<div class="controls">
<textarea class="input-xxlarge" name="modified_reason" size="40" maxlength="200" type="text" value="<?php echo $this->modified_reason; ?>"></textarea>
</div>
</div>
<?php endif; ?>

<!-- Bootstrap modal to be used with bbcode editor -->
<div id="modal-map" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
Expand Down

0 comments on commit f912a14

Please sign in to comment.