Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to disable stay on page confirmation popup from registration page


  • Jaremilus
    Participant

    @jaremilus

    I bind to selected item reload action with new parameter, but when i reload page i see confirmation dialog:

    “This page is asking you to confirm that you want to leave – data you have entered may not be saved” – “Stay on Page” “Leave”

    how i can disable it? on register.php?

Viewing 2 replies - 1 through 2 (of 2 total)

  • Henry Wright
    Moderator

    @henrywright

    Hi @jaremilus

    The stay-on-page prompt isn’t a BuddyPress thing. I think it’s coming from your browser. Alternatively, it might be from a plugin, if you have a plugin installed with that kind of functionality.


    Jaremilus
    Participant

    @jaremilus

    i disable it in file members/js/buddypress.js

    
    /*jq('#profile-edit-form input:not(:submit), #profile-edit-form textarea, #profile-edit-form select, #signup_form input:not(:submit), #signup_form textarea, #signup_form select').change( function() {*/ //line changed
    
    		jq('#profile-edit-form input:not(:submit), #profile-edit-form textarea, #profile-edit-form select').change( function() {
    		var shouldconfirm = true;
    
    		jq('#profile-edit-form input:submit, #signup_form input:submit').on( 'click', function() {
    			shouldconfirm = false;
    		});
    
    		window.onbeforeunload = function(e) {
    			if ( shouldconfirm ) {
    				return BP_DTheme.unsaved_changes;
    			}
    		};
    	});
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to disable stay on page confirmation popup from registration page’ is closed to new replies.