diff options
Diffstat (limited to 'extensions/TimedMediaHandler/resources/ext.tmh.TimedTextSelector.js')
-rw-r--r-- | extensions/TimedMediaHandler/resources/ext.tmh.TimedTextSelector.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/TimedMediaHandler/resources/ext.tmh.TimedTextSelector.js b/extensions/TimedMediaHandler/resources/ext.tmh.TimedTextSelector.js new file mode 100644 index 00000000..b53bb6f8 --- /dev/null +++ b/extensions/TimedMediaHandler/resources/ext.tmh.TimedTextSelector.js @@ -0,0 +1,8 @@ +( function ( $, mw ) { + $( function () { + $( '#timedmedia-tt-go' ).click( function () { + window.location = mw.config.get( 'wgScript' ) + '?title=' + mw.util.wikiUrlencode( mw.config.get( 'wgPageName' ) ) + '.' + $( '#timedmedia-tt-input' ).val() + '.srt&action=edit'; + } ); + } ); + +} )( jQuery, mediaWiki ); |