Changeset 9100
- Timestamp:
- 10/29/2014 12:36:18 AM (10 years ago)
- Location:
- trunk/src/bp-activity
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/css/mentions-rtl.css
r9008 r9100 1 1 .atwho-view { 2 background: #FFF;2 background: rgba(204, 204, 204, 0.8); 3 3 border-radius: 2px; 4 4 border: 1px solid rgb(204, 204, 204); … … 17 17 } 18 18 .atwho-view ul { 19 background: #FFF; 19 20 list-style: none; 20 21 margin: auto; … … 63 64 margin: 0 0 0 10px; 64 65 } 65 .atwho-view small {66 display: none;67 }68 66 } 69 67 @media (max-width: 400px) { … … 78 76 width: 30px; 79 77 } 78 .atwho-view { 79 border-radius: 0; 80 height: 100%; 81 right: 0 !important; 82 width: 100%; 83 } 84 .atwho-view ul li .username { 85 display: inline-block; 86 margin: -10px 0 0 0; 87 padding: 10px 0; 88 } 89 .atwho-view ul li small { 90 display: inline-block; 91 margin-right: 20px; 92 } 80 93 } -
trunk/src/bp-activity/js/mentions.js
r9098 r9100 222 222 223 223 $( document ).ready(function() { 224 var users = []; 224 var loadMentionsInTinyMCE, 225 loadAttempts = 0, 226 users = []; 225 227 226 228 if ( typeof window.BP_Suggestions === 'object' ) { … … 228 230 } 229 231 232 // Dashoard post 'visual' editor. 233 loadMentionsInTinyMCE = function() { 234 if ( loadAttempts < 4 || ! $( 'body' ).hasClass( 'wp-admin' ) ) { 235 loadAttempts++; 236 237 if ( typeof window.tinyMCE === 'undefined' || window.tinyMCE.activeEditor === null || typeof window.tinyMCE.activeEditor === 'undefined' ) { 238 setTimeout( loadMentionsInTinyMCE, 500 ); 239 return; 240 } 241 } 242 243 $( window.tinyMCE.activeEditor.contentDocument.activeElement ) 244 .atwho( 'setIframe', $( '#content_ifr' )[0] ) 245 .bp_mentions( users ); 246 }; 247 230 248 // Activity/reply, post comments, dashboard post 'text' editor. 231 249 $( '.bp-suggestions, #comments form textarea, .wp-editor-area' ).bp_mentions( users ); 250 251 // Dashbboard post 'visual' editor. 252 loadMentionsInTinyMCE(); 232 253 }); 233 254 })( jQuery );
Note: See TracChangeset
for help on using the changeset viewer.