Changeset 7252
- Timestamp:
- 07/09/2013 03:46:58 PM (12 years ago)
- Location:
- trunk/bp-themes/bp-default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/global.js
r7162 r7252 874 874 } ); 875 875 876 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() { 877 var shouldconfirm = true; 878 879 jq('#profile-edit-form input:submit, #signup_form input:submit').on( 'click', function() { 880 shouldconfirm = false; 881 }); 882 883 window.onbeforeunload = function(e) { 884 if ( shouldconfirm ) { 885 return BP_DTheme.unsaved_changes; 886 } 887 }; 888 }); 876 889 877 890 /** Friendship Requests **************************************/ -
trunk/bp-themes/bp-default/functions.php
r7228 r7252 166 166 'view' => __( 'View', 'buddypress' ), 167 167 'mark_as_fav' => __( 'Favorite', 'buddypress' ), 168 'remove_fav' => __( 'Remove Favorite', 'buddypress' ) 168 'remove_fav' => __( 'Remove Favorite', 'buddypress' ), 169 'unsaved_changes' => __( 'Your profile has unsaved changes. If you leave the page, the changes will be lost.', 'buddypress' ), 169 170 ); 170 171 wp_localize_script( 'dtheme-ajax-js', 'BP_DTheme', $params );
Note: See TracChangeset
for help on using the changeset viewer.