<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hackerbeach.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AMobile.js</id>
	<title>MediaWiki:Mobile.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hackerbeach.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AMobile.js"/>
	<link rel="alternate" type="text/html" href="https://wiki.hackerbeach.org/index.php?title=MediaWiki:Mobile.js&amp;action=history"/>
	<updated>2026-04-21T13:40:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.hackerbeach.org/index.php?title=MediaWiki:Mobile.js&amp;diff=211&amp;oldid=prev</id>
		<title>Raucao: Try workaround for https://phabricator.wikimedia.org/T176414</title>
		<link rel="alternate" type="text/html" href="https://wiki.hackerbeach.org/index.php?title=MediaWiki:Mobile.js&amp;diff=211&amp;oldid=prev"/>
		<updated>2018-01-05T15:25:15Z</updated>

		<summary type="html">&lt;p&gt;Try workaround for https://phabricator.wikimedia.org/T176414&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* Any JavaScript here will be loaded for users using the mobile site */&lt;br /&gt;
&lt;br /&gt;
//Removes the current mfTempOpenSection function so we don&amp;#039;t get console errors on heading clicks&lt;br /&gt;
&lt;br /&gt;
$(&amp;#039;.section-heading&amp;#039;).prop(&amp;#039;onclick&amp;#039;,null);&lt;br /&gt;
&lt;br /&gt;
//Add a new function that changes the display parameter of the collapsible div associated to the clicked header&lt;br /&gt;
&lt;br /&gt;
$(&amp;#039;.section-heading&amp;#039;).click(function($event){&lt;br /&gt;
&lt;br /&gt;
    var source = $event.target;&lt;br /&gt;
&lt;br /&gt;
    var sectionHeadings = $(&amp;#039;.section-heading&amp;#039;);    &lt;br /&gt;
&lt;br /&gt;
    sectionHeadings.toArray().forEach(function(section){&lt;br /&gt;
&lt;br /&gt;
       var span = section.getElementsByTagName(&amp;#039;span&amp;#039;)[0];&lt;br /&gt;
&lt;br /&gt;
       if (span.id == source.id){&lt;br /&gt;
&lt;br /&gt;
         var collapseDiv = section.nextSibling;&lt;br /&gt;
&lt;br /&gt;
         collapseDiv.style.display = collapseDiv.style.display == &amp;quot;block&amp;quot; ? &amp;quot;none&amp;quot; : &amp;quot;block&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
         return;&lt;br /&gt;
&lt;br /&gt;
       }&lt;br /&gt;
&lt;br /&gt;
    });&lt;br /&gt;
&lt;br /&gt;
});&lt;/div&gt;</summary>
		<author><name>Raucao</name></author>
	</entry>
</feed>