Skip to content

Commit

Permalink
Edit Avatar - text in dropzone and icon in button #5987
Browse files Browse the repository at this point in the history
  • Loading branch information
810 committed Jun 27, 2018
1 parent eb2f5d1 commit db80df5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Expand Up @@ -8,7 +8,7 @@ jQuery(function ($) {
var removeButton = $('<button/>')
.addClass('btn btn-danger')
.attr('type', 'button')
.html('<i class="icon-trash"></i> ' + Joomla.JText._('COM_KUNENA_GEN_REMOVE_AVATAR'))
.html(Joomla.getOptions('com_kunena.avatar_delete') + ' ' + Joomla.JText._('COM_KUNENA_GEN_REMOVE_AVATAR'))
.on('click', function () {
var $this = $(this),
data = $this.data();
Expand Down
Expand Up @@ -28,6 +28,7 @@

Factory::getDocument()->addScriptOptions('com_kunena.avatar_remove_url', KunenaRoute::_('index.php?option=com_kunena&view=user&task=removeavatar&format=json&' . \Joomla\CMS\Session\Session::getFormToken() . '=1', false));
Factory::getDocument()->addScriptOptions('com_kunena.avatar_preload_url', KunenaRoute::_('index.php?option=com_kunena&view=user&task=loadavatar&format=json&' . \Joomla\CMS\Session\Session::getFormToken() . '=1', false));
Factory::getDocument()->addScriptOptions('com_kunena.avatar_delete', KunenaIcons::delete());
?>
<h3>
<?php echo $this->headerText; ?>
Expand Down
Expand Up @@ -8,7 +8,7 @@ jQuery(function ($) {
var removeButton = $('<button/>')
.addClass('btn btn-danger')
.attr('type', 'button')
.html('<i class="icon-trash"></i> ' + Joomla.JText._('COM_KUNENA_GEN_REMOVE_AVATAR'))
.html(Joomla.getOptions('com_kunena.avatar_delete') + ' ' + Joomla.JText._('COM_KUNENA_GEN_REMOVE_AVATAR'))
.on('click', function () {
var $this = $(this),
data = $this.data();
Expand Down
Expand Up @@ -28,7 +28,7 @@

Factory::getDocument()->addScriptOptions('com_kunena.avatar_remove_url', KunenaRoute::_('index.php?option=com_kunena&view=user&task=removeavatar&format=json&' . \Joomla\CMS\Session\Session::getFormToken() . '=1', false));
Factory::getDocument()->addScriptOptions('com_kunena.avatar_preload_url', KunenaRoute::_('index.php?option=com_kunena&view=user&task=loadavatar&format=json&' . \Joomla\CMS\Session\Session::getFormToken() . '=1', false));

Factory::getDocument()->addScriptOptions('com_kunena.avatar_delete', KunenaIcons::delete());
?>
<h3>
<?php echo $this->headerText; ?>
Expand Down

0 comments on commit db80df5

Please sign in to comment.