File: adm/style/tooltip.js
Unmodified
Added
Modified
Removed
Line 218 | Line 218 |
---|
// Prepare dropdown phpbb.prepareRolesDropdown();
|
// Prepare dropdown phpbb.prepareRolesDropdown();
|
// Reset role drop-down on modifying permissions in advanced tab $('div.permissions-switch > a').on('click', function () { $.each($('input[type=radio][name^="setting["]'), function () { var $this = $(this); $this.on('click', function () { var $rolesOptions = $this.closest('fieldset.permissions').find('.roles-options'), rolesSelect = $rolesOptions.find('select > option')[0];
// Set selected setting $rolesOptions.children('span') .text(rolesSelect.text); $rolesOptions.children('input[type=hidden]') .val(rolesSelect.value); }); }); });
| |
});
})(jQuery); // Avoid conflicts with other libraries
| });
})(jQuery); // Avoid conflicts with other libraries
|