[buddypress-trac] [BuddyPress] #4958: Improve UX of visibility setting dialog on registration page

buddypress-trac noreply at wordpress.org
Sat Apr 27 18:37:13 UTC 2013


#4958: Improve UX of visibility setting dialog on registration page
-------------------------+------------------
 Reporter:  dcavins      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  1.8
Component:  UX/UI        |     Version:
 Severity:  minor        |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by dcavins):

 That's a good point. I've attached a new patch that adds functionality
 like that to the profile edit form. The user confirmation dialog is based
 on this document: https://developer.mozilla.org/en-
 US/docs/DOM/window.onbeforeunload

 The logic I used was:
 If the user changes any input on the form (other than submit), then the
 window.onbeforeunload function is active, preventing the user from
 navigating away. However, if the user attempts to "leave" the page by
 clicking submit, window.onbeforeunload doesn't return anything, so the
 action is allowed.

 I think it could be tidier, but it does work as I expect.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4958#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list