mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +09:00
- fixed roles table;
- added onleave event to settings page; - added install info to settings tab;
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
jQuery( document ).ready( function() {
|
||||
|
||||
/**
|
||||
* Licenses
|
||||
*/
|
||||
@@ -9,4 +8,28 @@ jQuery( document ).ready( function() {
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Not licenses page
|
||||
*/
|
||||
if ( jQuery( '#licenses_settings' ).length == 0 ) {
|
||||
var changed = false;
|
||||
|
||||
jQuery( 'input, textarea, select' ).change( function() {
|
||||
changed = true;
|
||||
});
|
||||
|
||||
jQuery( '#um-settings-wrap .um-nav-tab-wrapper a, #um-settings-wrap .subsubsub a' ).click( function() {
|
||||
if ( changed ) {
|
||||
window.onbeforeunload = function() {
|
||||
return php_data.onbeforeunload_text;
|
||||
};
|
||||
} else {
|
||||
window.onbeforeunload = '';
|
||||
}
|
||||
});
|
||||
|
||||
jQuery( '.submit input' ).click( function() {
|
||||
window.onbeforeunload = '';
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user