Page MenuHomePhabricator
Authored By
Dapal
Feb 25 2018, 9:23 AM
Size
992 B
Referenced Files
None
Subscribers
None

T188202.patch

--- InterWikiTransclusion.js 2018-02-25 10:11:57.968493372 +0100
+++ InterWikiTransclusion_new.js 2018-02-25 10:16:08.492738235 +0100
@@ -159,7 +159,12 @@
tosection = '';
if (m.length > 4) fromsection = m[4];
if (m.length > 5) tosection = m[5];
- url = api_url(lang) + '?format=json&requestid=' + item.title + "___" + Math.random() + '&action=parse&callback=iw_pages_callback&text=<pages index="'+title+'" from='+from+' to='+to+' fromsection='+fromsection+' tosection='+tosection+' /><references/>&title='+title;
+ if (m.length > 6) {
+ fromsection = '';
+ tosection = '';
+ onlysection = m[6];
+ }
+ url = api_url(lang) + '?format=json&requestid=' + item.title + "___" + Math.random() + '&action=parse&callback=iw_pages_callback&text=<pages index="'+title+'" from='+from+' to='+to+' fromsection='+fromsection+' tosection='+tosection+' onlysection='+onlysection+' /><references/>&title='+title;
mw.loader.load(url);
}
spans = jQuery( 'span.iwpage' ) ;

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5567302
Default Alt Text
T188202.patch (992 B)

Event Timeline