- fixed roles table;

- added onleave event to settings page;
- added install info to settings tab;
This commit is contained in:
nikitozzzzzzz
2017-07-31 16:56:16 +03:00
parent b31d994e04
commit e059e78c91
6 changed files with 405 additions and 436 deletions
+24 -1
View File
@@ -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 = '';
});
}
});