Changeset 10495
- Timestamp:
- 02/02/2016 07:53:52 PM (9 years ago)
- Location:
- branches/2.4/src/bp-core
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/src/bp-core/bp-core-avatars.php
r10369 r10495 1949 1949 */ 1950 1950 function bp_avatar_use_webcam() { 1951 global $is_safari, $is_IE ;1951 global $is_safari, $is_IE, $is_chrome; 1952 1952 1953 1953 /** … … 1964 1964 * @see http://caniuse.com/#feat=stream 1965 1965 */ 1966 if ( $is_safari || $is_IE ) {1966 if ( $is_safari || $is_IE || ( $is_chrome && ! is_ssl() ) ) { 1967 1967 return false; 1968 1968 } -
branches/2.4/src/bp-core/css/avatar-rtl.css
r10155 r10495 171 171 } 172 172 173 .drag-drop-inside p.drag-drop-info {margin-top: 0;} 173 .drag-drop-inside p.drag-drop-info { 174 margin-top: 0; 175 } 176 177 @supports (-ms-accelerator:true) { 178 .drag-drop-inside p.drag-drop-info { 179 display: block; 180 } 181 } 174 182 175 183 #avatar-to-crop { -
branches/2.4/src/bp-core/css/avatar.css
r10155 r10495 171 171 } 172 172 173 .drag-drop-inside p.drag-drop-info {margin-top: 0;} 173 .drag-drop-inside p.drag-drop-info { 174 margin-top: 0; 175 } 176 177 @supports (-ms-accelerator:true) { 178 .drag-drop-inside p.drag-drop-info { 179 display: block; 180 } 181 } 174 182 175 183 #avatar-to-crop { -
branches/2.4/src/bp-core/js/avatar.js
r10208 r10495 16 16 bp.Avatar = { 17 17 start: function() { 18 var self = this; 19 18 20 /** 19 21 * Remove the bp-legacy UI … … 43 45 /** 44 46 * In Administration screens we're using Thickbox 45 * We need to make sure to reset the views if it's closed 47 * We need to make sure to reset the views if it's closed or opened 46 48 */ 47 49 $( 'body.wp-admin' ).on( 'tb_unload', '#TB_window', function() { 48 // Reset to the uploader view 49 bp.Avatar.nav.trigger( 'bp-avatar-view:changed', 'upload' ); 50 51 // Reset to the uploader nav 52 _.each( bp.Avatar.navItems.models, function( model ) { 53 if ( model.id === 'upload' ) { 54 model.set( { active: 1 } ); 55 } else { 56 model.set( { active: 0 } ); 57 } 58 } ); 50 self.resetViews(); 51 } ); 52 53 $( 'body.wp-admin' ).on( 'click', '.bp-xprofile-avatar-user-edit', function() { 54 self.resetViews(); 59 55 } ); 60 56 }, … … 121 117 break; 122 118 } 119 }, 120 121 resetViews: function() { 122 // Reset to the uploader view 123 this.nav.trigger( 'bp-avatar-view:changed', 'upload' ); 124 125 // Reset to the uploader nav 126 _.each( this.navItems.models, function( model ) { 127 if ( model.id === 'upload' ) { 128 model.set( { active: 1 } ); 129 } else { 130 model.set( { active: 0 } ); 131 } 132 } ); 123 133 }, 124 134 -
branches/2.4/src/bp-core/js/webcam.js
r10017 r10495 90 90 video.src = stream; 91 91 video.play(); 92 } else if ( video.srcObject !== undefined ) { 93 video.srcObject = stream; 92 94 } else if ( window.URL ) { 93 95 video.src = window.URL.createObjectURL( stream ); … … 213 215 214 216 if ( navigator.getUserMedia ) { 215 navigator.getUserMedia( { video:true }, bp.WebCam.gotStream, bp.WebCam s.noStream );217 navigator.getUserMedia( { video:true }, bp.WebCam.gotStream, bp.WebCam.noStream ); 216 218 } else if ( navigator.oGetUserMedia ) { 217 219 navigator.oGetUserMedia( { video:true }, bp.WebCam.gotStream, bp.WebCam.noStream );
Note: See TracChangeset
for help on using the changeset viewer.