mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- disable all inputs
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
jQuery(window).on( 'load', function($) {
|
||||
var observer = new MutationObserver(function(mutations) {
|
||||
mutations.forEach(function(mutation) {
|
||||
jQuery(mutation.addedNodes).find('.um.um-directory').each(function() {
|
||||
jQuery('.um-directory input, .um-directory select, .um-directory button').attr('disabled', 'disabled');
|
||||
jQuery('.um-directory a').attr('href', '');
|
||||
});
|
||||
jQuery(mutation.addedNodes).find('.um.um-profile').each(function() {
|
||||
jQuery('.um-profile input, .um-profile select, .um-profile button').attr('disabled', 'disabled');
|
||||
jQuery('.um-profile a').attr('href', '');
|
||||
});
|
||||
jQuery(mutation.addedNodes).find('.um.um-account').each(function() {
|
||||
jQuery('.um-account input, .um-account select, .um-account button').attr('disabled', 'disabled');
|
||||
jQuery('.um-account a').attr('href', '');
|
||||
});
|
||||
jQuery(mutation.addedNodes).find('.um.um-password').each(function() {
|
||||
jQuery('.um-password input, .um-password select, .um-password button').attr('disabled', 'disabled');
|
||||
jQuery('.um-password a').attr('href', '');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
observer.observe(document, {attributes: false, childList: true, characterData: false, subtree:true});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user