Skip to content

Commit

Permalink
Move edit to dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ciar4n committed May 17, 2017
1 parent d5a3df8 commit fbaf616
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
5 changes: 0 additions & 5 deletions administrator/components/com_content/View/Articles/Html.php
Expand Up @@ -156,11 +156,6 @@ protected function addToolbar()
\JToolbarHelper::addNew('article.add');
}

if (($canDo->get('core.edit')) || ($canDo->get('core.edit.own')))
{
\JToolbarHelper::editList('article.edit');
}

if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete'))
{
\JToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'articles.delete', 'JTOOLBAR_EMPTY_TRASH');
Expand Down
Expand Up @@ -82,6 +82,7 @@
</a>
<div class="dropdown-menu">
<?php if ($canDo->get('core.edit.state')) { ?>
<a class="dropdown-item" onclick="if (document.adminForm.boxchecked.value == 0) { Joomla.renderMessages({'error': [Joomla.JText._('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST')]}) } else { Joomla.submitbutton('article.edit'); }"><?php echo JText::_('JTOOLBAR_EDIT'); ?></a>
<a class="dropdown-item" onclick="if (document.adminForm.boxchecked.value == 0) { Joomla.renderMessages({'error': [Joomla.JText._('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST')]}) } else { Joomla.submitbutton('articles.publish'); }"><?php echo JText::_('JTOOLBAR_PUBLISH'); ?></a>
<a class="dropdown-item" onclick="if (document.adminForm.boxchecked.value == 0) { Joomla.renderMessages({'error': [Joomla.JText._('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST')]}) } else { Joomla.submitbutton('articles.unpublish'); }"><?php echo JText::_('JTOOLBAR_UNPUBLISH'); ?></a>
<a class="dropdown-item" onclick="if (document.adminForm.boxchecked.value == 0) { Joomla.renderMessages({'error': [Joomla.JText._('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST')]}) } else { Joomla.submitbutton('articles.featured'); }"><?php echo JText::_('JFEATURE'); ?></a>
Expand Down
2 changes: 2 additions & 0 deletions administrator/templates/atum/css/template.css
Expand Up @@ -10218,6 +10218,8 @@ iframe {
width: 2.3rem;
font-size: 1.3rem;
color: #464a4c; }
.table-row-actions .dropdown-item.active, .table-row-actions .dropdown-item:active {
background-color: #636c72; }

.chzn-container.chzn-container-single .chzn-single {
display: inline-block;
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/atum/css/template.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion administrator/templates/atum/css/template.min.css

Large diffs are not rendered by default.

Expand Up @@ -41,4 +41,7 @@
font-size: 1.3rem;
color: $gray;
}
.dropdown-item.active, .dropdown-item:active {
background-color: $gray-light;
}
}

0 comments on commit fbaf616

Please sign in to comment.