Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js |
— | — | @@ -100,19 +100,23 @@ |
101 | 101 | } |
102 | 102 | window.ranMwRewrites = 'done'; |
103 | 103 | |
104 | | - // Add media wizard |
105 | | - if ( ( wgAction == 'edit' && wgPageName.indexOf( "Sequence:" ) ) || wgAction == 'submit' ) { |
106 | | - loadMwEmbed( [ |
107 | | - 'mw.RemoteSearchDriver', |
108 | | - 'mw.ClipEdit', |
109 | | - 'mw.style.ClipEdit', |
110 | | - '$j.fn.textSelection', |
111 | | - '$j.ui', |
112 | | - '$j.ui.sortable' |
113 | | - ], function() { |
114 | | - mw.load( mwEmbedHostPath + '/remotes/AddMediaWizardEditPage.js?' + mwGetReqArgs() ); |
115 | | - } ); |
116 | | - return ; |
| 104 | + // Add media wizard ( only if not on a sequence page |
| 105 | + if ( ( wgAction == 'edit' || wgAction == 'submit' ) { |
| 106 | + if( wgPageName.indexOf( "Sequence:" ) != 0 ){ |
| 107 | + loadMwEmbed( [ |
| 108 | + 'mw.RemoteSearchDriver', |
| 109 | + 'mw.ClipEdit', |
| 110 | + 'mw.style.ClipEdit', |
| 111 | + '$j.fn.textSelection', |
| 112 | + '$j.ui', |
| 113 | + '$j.widget', |
| 114 | + '$j.ui.mouse' |
| 115 | + '$j.ui.sortable' |
| 116 | + ], function() { |
| 117 | + mw.load( mwEmbedHostPath + '/remotes/AddMediaWizardEditPage.js?' + mwGetReqArgs() ); |
| 118 | + } ); |
| 119 | + return ; |
| 120 | + } |
117 | 121 | } |
118 | 122 | |
119 | 123 | // Timed text display: |