Index: trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.user/ext.articleCreation.user.js |
— | — | @@ -204,11 +204,7 @@ |
205 | 205 | }, |
206 | 206 | |
207 | 207 | isInterstitialDisabled : function(button) { |
208 | | - if ( $.cookie('mw:ac:disabled-interstitial:'+button) ) { |
209 | | - return true; |
210 | | - } |
211 | | - |
212 | | - return false; |
| 208 | + return $.cookie('mw:ac:disabled-interstitial:' + button); |
213 | 209 | }, |
214 | 210 | |
215 | 211 | trackAction : function(article, action) { |
Index: trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.init/ext.articleCreation.init.js |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | jQuery( document ).ready( function() { |
3 | 3 | var newTitle = 'Special:ArticleCreationLanding' + '/' + |
4 | | - encodeURIComponent(wgPageName); |
| 4 | + encodeURIComponent( mw.config.get('wgArticlePath') ); |
5 | 5 | var landingURL = mw.config.get('wgArticlePath').replace( '$1', newTitle ); |
6 | 6 | // change the link to point to the new special page |
7 | 7 | jQuery("div.noarticletext") |