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:
@@ -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
|
||||
|
2
wire/templates-admin/scripts/main.min.js
vendored
2
wire/templates-admin/scripts/main.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user