r72322 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72321‎ | r72322 | r72323 >
Date:22:07, 3 September 2010
Author:dale
Status:deferred
Tags:
Comment:
added jquery ui 1.8 deps for AMD remote
Modified paths:
  • /branches/MwEmbedStandAlone/remotes/mediaWiki.js (modified) (history)

Diff [purge]

Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js
@@ -100,19 +100,23 @@
101101 }
102102 window.ranMwRewrites = 'done';
103103
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+ }
117121 }
118122
119123 // Timed text display:

Status & tagging log