Index: branches/MwEmbedStandAlone/modules/TimedText/mw.TimedText.js |
— | — | @@ -230,7 +230,7 @@ |
231 | 231 | // NOTE: Button target should be an option or config |
232 | 232 | $menuButton.unbind().menu( { |
233 | 233 | 'content' : _this.getMainMenu(), |
234 | | - 'zindex' : mw.getConfig( 'fullScreenIndex' ), |
| 234 | + 'zindex' : mw.getConfig( 'fullScreenIndex' )+2, |
235 | 235 | 'crumbDefaultText' : ' ', |
236 | 236 | 'autoShow': autoShow, |
237 | 237 | 'targetMenuContainer' : _this.menuTarget, |
Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/skins/ctrlBuilder.js |
— | — | @@ -1208,19 +1208,21 @@ |
1209 | 1209 | showTextInterface: function() { |
1210 | 1210 | var _this = this; |
1211 | 1211 | var embedPlayer = this.embedPlayer; |
1212 | | - mw.log('ttt:showTextInterface::'); |
| 1212 | + var loc = embedPlayer.$interface.find( '.rButton.timed-text' ).offset(); |
| 1213 | + mw.log('showTextInterface::' + embedPlayer.id + ' t' + loc.top + ' r' + loc.right); |
1213 | 1214 | |
| 1215 | + |
1214 | 1216 | var $menu = $j( '#timedTextMenu_' + embedPlayer.id ); |
1215 | | - //This may be unnessesary .. we just need to show a sppiner somewhere |
| 1217 | + //This may be unnecessary .. we just need to show a spiner somewhere |
1216 | 1218 | if ( $menu.length != 0 ) { |
1217 | 1219 | // Hide show the menu: |
1218 | 1220 | if( $menu.is( ':visible' ) ) { |
1219 | 1221 | $menu.hide( "fast" ); |
1220 | 1222 | }else{ |
| 1223 | + // move the menu to proper location |
1221 | 1224 | $menu.show("fast"); |
1222 | 1225 | } |
1223 | | - }else{ |
1224 | | - var loc = embedPlayer.$interface.find( '.rButton.timed-text' ).offset(); |
| 1226 | + }else{ |
1225 | 1227 | //Setup the menu: |
1226 | 1228 | $j('body').append( |
1227 | 1229 | $j('<div>') |
— | — | @@ -1237,8 +1239,7 @@ |
1238 | 1240 | |
1239 | 1241 | ); |
1240 | 1242 | // Load text interface ( if not already loaded ) |
1241 | | - mw.load( 'TimedText', function() { |
1242 | | - mw.log('ttt:TimedText CB .. do timedText bind::'); |
| 1243 | + mw.load( 'TimedText', function() { |
1243 | 1244 | $j( '#' + embedPlayer.id ).timedText( 'showMenu', '#timedTextMenu_' + embedPlayer.id ); |
1244 | 1245 | }); |
1245 | 1246 | } |