mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 09:46:06 +01:00
Implemented collapsible rows in Plugins list to see details about the plugin itself
This commit is contained in:
@@ -79,6 +79,26 @@ $(function () {
|
||||
});
|
||||
});
|
||||
|
||||
// Plugins list details sliders
|
||||
$('.gpm-name, .gpm-actions').on('click', function(e){
|
||||
var target = $(e.target);
|
||||
|
||||
if (target.prop('tagName') == 'A' || target.parent('a').length) { return true; }
|
||||
|
||||
var wrapper = $(this).siblings('.gpm-details').find('.table-wrapper');
|
||||
wrapper.slideToggle({
|
||||
duration: 350,
|
||||
complete: function(){
|
||||
var isVisible = wrapper.is(':visible');
|
||||
wrapper
|
||||
.closest('tr')
|
||||
.find('.gpm-details-expand i')
|
||||
.removeClass('fa-chevron-' + (isVisible ? 'down' : 'up'))
|
||||
.addClass('fa-chevron-' + (isVisible ? 'up' : 'down'));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Update plugins/themes
|
||||
$('[data-maintenance-update]').on('click', function(e) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user