Enabling / Disabling a Plugin doesn't trigger the expand / collapse details anymore (fixes #614)

This commit is contained in:
Djamil Legato
2016-05-26 16:37:45 -07:00
parent 470fca059f
commit f279a662db
3 changed files with 4 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
* Disable double clicking on Save/Delete/Copy page actions [#611](https://github.com/getgrav/grav-plugin-admin/issues/611) * Disable double clicking on Save/Delete/Copy page actions [#611](https://github.com/getgrav/grav-plugin-admin/issues/611)
* Tweaked the avatar alignment in sidebar [#592](https://github.com/getgrav/grav-plugin-admin/issues/592) * Tweaked the avatar alignment in sidebar [#592](https://github.com/getgrav/grav-plugin-admin/issues/592)
* Added page name to delete dialog [#511](https://github.com/getgrav/grav-plugin-admin/issues/511) * Added page name to delete dialog [#511](https://github.com/getgrav/grav-plugin-admin/issues/511)
* Enabling / Disabling a Plugin doesn't trigger the expand / collapse details anymore [#614](https://github.com/getgrav/grav-plugin-admin/issues/614)
1. [](#bugfix) 1. [](#bugfix)
* Fix double "Removed successfully" appearing when removing a package [#609](https://github.com/getgrav/grav-plugin-admin/issues/609) * Fix double "Removed successfully" appearing when removing a package [#609](https://github.com/getgrav/grav-plugin-admin/issues/609)
* Prevent removing required plugins dependencies when removing a package [#613](https://github.com/getgrav/grav-plugin-admin/issues/613) * Prevent removing required plugins dependencies when removing a package [#613](https://github.com/getgrav/grav-plugin-admin/issues/613)

View File

@@ -7,7 +7,7 @@ $('.gpm-name, .gpm-actions').on('click', function(e) {
let target = $(e.target); let target = $(e.target);
let tag = target.prop('tagName').toLowerCase(); let tag = target.prop('tagName').toLowerCase();
if (tag === 'a' || element.parent('a').length) { return true; } if (tag === 'a' || element.parent('a').length || target.parent('a').length) { return true; }
let wrapper = element.siblings('.gpm-details').find('.table-wrapper'); let wrapper = element.siblings('.gpm-details').find('.table-wrapper');

File diff suppressed because one or more lines are too long