Skip to content

Commit

Permalink
erge branch '3.0'
Browse files Browse the repository at this point in the history
* 3.0:
  Fixed wrong behaviour of icon changes when open a category
  • Loading branch information
thorsten committed Jan 6, 2020
2 parents 71aeb56 + 227db73 commit 61e0120
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions phpmyfaq/admin/assets/js/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

document.addEventListener('DOMContentLoaded', () => {
'use strict';
$(function() {
() => {
$('.list-group-item').on('click', function() {
$('.fa', this)
$('.fa.pmf-has-subcategories', this)
.toggleClass('fa-caret-right')
.toggleClass('fa-caret-down');
});
});
};
});
2 changes: 1 addition & 1 deletion phpmyfaq/admin/assets/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @package phpMyFAQ
* @author Thorsten Rinne
* @copyright 2019 phpMyFAQ Team
* @copyright 2019-2020 phpMyFAQ Team
* @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
* @link https://www.phpmyfaq.de
* @since 2019-12-20
Expand Down
2 changes: 1 addition & 1 deletion phpmyfaq/admin/category.main.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
);
printf(
'<span>%s %s</span>',
$numSubCategories > 0 ? '<i class="fa fa-caret-right"></i>' : '',
$numSubCategories > 0 ? '<i class="fa fa-caret-right pmf-has-subcategories"></i>' : '',
$categoryName
);

Expand Down
2 changes: 1 addition & 1 deletion phpmyfaq/assets/src/frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @package phpMyFAQ
* @author Thorsten Rinne
* @copyright 2019 phpMyFAQ Team
* @copyright 2019-2020 phpMyFAQ Team
* @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
* @link https://www.phpmyfaq.de
* @since 2019-12-20
Expand Down
2 changes: 1 addition & 1 deletion phpmyfaq/assets/src/vendors.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @package phpMyFAQ
* @author Thorsten Rinne
* @copyright 2019 phpMyFAQ Team
* @copyright 2019-2020 phpMyFAQ Team
* @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
* @link https://www.phpmyfaq.de
* @since 2019-12-14
Expand Down
2 changes: 1 addition & 1 deletion phpmyfaq/lang/language_mn.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @category phpMyFAQ
* @author khaidaw@gmail.com
* @copyright 2019 phpMyFAQ Team
* @copyright 2019-2020 phpMyFAQ Team
* @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
* @link http://www.phpmyfaq.de
* @since 2019-03-24
Expand Down

0 comments on commit 61e0120

Please sign in to comment.