tailbone/tailbone/static/js/tailbone.appsettings.js
Lance Edgar 4e09b757c3 Add (admin-friendly!) view to manage some App Settings
which settings are available to this view will depend on the project's settings
module, similar to how the email settings work
2018-07-18 13:09:32 -05:00

30 lines
571 B
JavaScript

/************************************************************
*
* tailbone.appsettings.js
*
* Logic for App Settings page.
*
************************************************************/
function show_group(group) {
if (group == "(All)") {
$('.panel').show();
} else {
$('.panel').hide();
$('.panel[data-groupname="' + group + '"]').show();
}
}
$(function() {
$('#settings-group').on('selectmenuchange', function(event, ui) {
show_group(ui.item.value);
});
show_group($('#settings-group').val());
});