1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-14 10:45:54 +02:00

Add support for group notifications in AdminThemeFramework (AdminThemeUikit), along with a config option in the AdminThemeUikit module. Also fix an issue in ProcessProfile that was interfering with ajax requests.

This commit is contained in:
Ryan Cramer
2017-11-20 09:45:16 -05:00
parent 32b3da7b0d
commit 337e59663b
11 changed files with 168 additions and 50 deletions

View File

@@ -15,7 +15,26 @@ var ProcessWireAdmin = {
this.setupButtonStates();
this.setupTooltips();
this.setupDropdowns();
this.setupNotices();
},
setupNotices: function() {
$(".pw-notice-group-toggle").click(function() {
var $parent = $(this).closest('.pw-notice-group-parent');
var $children = $parent.nextUntil('.pw-notice-group-parent');
if($parent.hasClass('pw-notice-group-open')) {
$parent.removeClass('pw-notice-group-open');
$children.slideUp('fast');
} else {
$parent.addClass('pw-notice-group-open');
$children.slideDown('fast');
}
$parent.find('i[data-toggle]').each(function() {
$(this).toggleClass($(this).attr('data-toggle'));
});
return false;
});
},
/**
* Enable jQuery UI tooltips

File diff suppressed because one or more lines are too long