Index: trunk/extensions/UploadWizard/resources/language/mw.Parser.js |
— | — | @@ -114,7 +114,7 @@ |
115 | 115 | for ( var pInx = 0; pInx < paramSet.length; pInx++ ) { |
116 | 116 | var paramString = paramSet[ pInx ]; |
117 | 117 | // check for empty param |
118 | | - if ( paramString == '' ) { |
| 118 | + if ( paramString === '' ) { |
119 | 119 | templateObject.param[ pInx ] = ''; |
120 | 120 | continue; |
121 | 121 | } |
— | — | @@ -166,13 +166,13 @@ |
167 | 167 | text = text.replace( re , LINK_SWAP_STRING ); |
168 | 168 | |
169 | 169 | for( var i=0; i < matchSet.length; i++ ) { |
170 | | - // Strip the leading [ and trailing ] |
171 | | - var matchParts = matchSet[i].substr(1, matchSet[i].length-2); |
172 | | - |
173 | | - // Check for special jQuery type swap and replace inner JQUERY_SWAP_STRING not value |
| 170 | + // Strip the leading [ and trailing ] |
| 171 | + var matchParts = matchSet[i].substr(1, matchSet[i].length-2); |
| 172 | + |
| 173 | + // Check for special jQuery type swap and replace inner JQUERY_SWAP_STRING not value |
174 | 174 | if( matchParts.indexOf( JQUERY_SWAP_STRING ) !== -1 ) { |
175 | 175 | // parse the link as html |
176 | | - var $matchParts = $j('<span>' + matchParts + '</span>' ); |
| 176 | + var $matchParts = $j('<span>' + matchParts + '</span>' ); |
177 | 177 | |
178 | 178 | $jQuerySpan = $matchParts.find('#' +JQUERY_SWAP_STRING + i ); |
179 | 179 | |
— | — | @@ -182,14 +182,14 @@ |
183 | 183 | |
184 | 184 | text = text.replace( LINK_SWAP_STRING, $j('<span />' ).append( $jQuerySpan ).html() ); |
185 | 185 | } else { |
186 | | - // do text string replace |
187 | | - matchParts = matchParts.split(/ /); |
188 | | - var link = matchParts[0]; |
189 | | - matchParts.shift(); |
190 | | - var linkText = matchParts.join(' '); |
191 | | - |
192 | | - text = text.replace( LINK_SWAP_STRING, '<a href="' + link + '">' + linkText + '</a>' ); |
193 | | - } |
| 186 | + // do text string replace |
| 187 | + matchParts = matchParts.split(/ /); |
| 188 | + var link = matchParts[0]; |
| 189 | + matchParts.shift(); |
| 190 | + var linkText = matchParts.join(' '); |
| 191 | + |
| 192 | + text = text.replace( LINK_SWAP_STRING, '<a href="' + link + '">' + linkText + '</a>' ); |
| 193 | + } |
194 | 194 | } |
195 | 195 | return text; |
196 | 196 | } |