Skip to content

Commit

Permalink
When edit the poll, the button is now edit instead add (#6047)
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit authored and 810 committed Jul 16, 2018
1 parent 34e50d1 commit eb871d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Expand Up @@ -436,6 +436,7 @@ COM_KUNENA_EDITOR_MODAL_TITLE_VIDEO_URL_PROVIDER = "Url Provider"
COM_KUNENA_EDITOR_MODAL_TITLE_VIDEO_URL_PROVIDER_URL = "URL"
COM_KUNENA_EDITOR_MODAL_TITLE_POLL_SETTINGS = "Poll Settings"
COM_KUNENA_EDITOR_MODAL_ADD_LABEL = "Add"
COM_KUNENA_EDITOR_MODAL_EDIT_LABEL = "Edit"
COM_KUNENA_EDITOR_MODAL_CLOSE_LABEL = "Close modal"
COM_KUNENA_EDITOR_MODAL_TITLE_VIDEO_SETTINGS = "Video Settings"
COM_KUNENA_EDITOR_MODAL_TITLE_POLL_NOT_ALLOWED_TO_EDIT = "You aren't allowed to edit the poll"
Expand Down
Expand Up @@ -311,7 +311,7 @@ class="add-on"><?php echo KunenaIcons::grid(); ?></span>
</div>
<div class="modal-footer">
<button id="poll-settings-modal-submit"
class="btn btn-primary"><?php echo JText::_('COM_KUNENA_EDITOR_MODAL_ADD_LABEL') ?></button>
class="btn btn-primary"><?php echo $this->poll->exists() ? JText::_('COM_KUNENA_EDITOR_MODAL_EDIT_LABEL') : JText::_('COM_KUNENA_EDITOR_MODAL_ADD_LABEL') ?></button>
<button class="btn" data-dismiss="modal"
aria-hidden="true"><?php echo JText::_('COM_KUNENA_EDITOR_MODAL_CLOSE_LABEL') ?></button>
<button id="clearpoll" class="btn btn-danger" data-dismiss="modal"
Expand Down
Expand Up @@ -328,7 +328,7 @@ class="btn btn-primary modal-submit"><?php echo JText::_('COM_KUNENA_EDITOR_MODA
</div>
<div class="modal-footer">
<button id="poll-settings-modal-submit"
class="btn btn-primary"><?php echo JText::_('COM_KUNENA_EDITOR_MODAL_ADD_LABEL') ?></button>
class="btn btn-primary"><?php echo $this->poll->exists() ? JText::_('COM_KUNENA_EDITOR_MODAL_EDIT_LABEL') : JText::_('COM_KUNENA_EDITOR_MODAL_ADD_LABEL') ?></button>
<button class="btn btn-default" data-dismiss="modal"
aria-hidden="true"><?php echo JText::_('COM_KUNENA_EDITOR_MODAL_CLOSE_LABEL') ?></button>
</div>
Expand Down

0 comments on commit eb871d8

Please sign in to comment.