r105850 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r105849
|
r105850
|
r105851
>
Date:
04:54, 12 December 2011
Author:
brion
Status:
ok
Tags:
mobile
Comment:
* (
bug 32972
) MobileFrontend: File page magic should show the appropriate section when linking to a #hash
Modified paths:
/trunk/extensions/MobileFrontend/javascripts/filepage.js
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/MobileFrontend/javascripts/filepage.js
—
—
@@ -67,7 +67,6 @@
68
68
}
69
69
}
70
70
}
71
- return false;
72
71
};
73
72
}
74
73
—
—
@@ -102,6 +101,14 @@
103
102
}
104
103
105
104
stopClickThrough();
106
-makeToggle('file')();
107
105
106
+var initial = 'file';
107
+if (window.location.hash) {
108
+ var section = window.location.hash.substr(1);
109
+ if (section in chunks) {
110
+ initial = section;
111
+ }
112
+}
113
+makeToggle(initial)();
114
+
108
115
})();
Status & tagging log
00:23, 20 January 2012
Aaron Schulz
(
talk
|
contribs
)
changed the
status
of r105850
[
removed:
new
added:
ok]
07:02, 23 December 2011
RobLa
(
talk
|
contribs
)
changed the
tags
for r105850
[
added:
mobile]