<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://calidusassist.adcservices.apteancloud.com/calidus-assist/WCS/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js</id>
	<title>MediaWiki:Common.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://calidusassist.adcservices.apteancloud.com/calidus-assist/WCS/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js"/>
	<link rel="alternate" type="text/html" href="https://calidusassist.adcservices.apteancloud.com/calidus-assist/WCS/index.php?title=MediaWiki:Common.js&amp;action=history"/>
	<updated>2026-05-10T04:04:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://calidusassist.adcservices.apteancloud.com/calidus-assist/WCS/index.php?title=MediaWiki:Common.js&amp;diff=386&amp;oldid=prev</id>
		<title>Anw: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://calidusassist.adcservices.apteancloud.com/calidus-assist/WCS/index.php?title=MediaWiki:Common.js&amp;diff=386&amp;oldid=prev"/>
		<updated>2024-08-21T07:39:10Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:39, 21 August 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Anw</name></author>
	</entry>
	<entry>
		<id>https://calidusassist.adcservices.apteancloud.com/calidus-assist/WCS/index.php?title=MediaWiki:Common.js&amp;diff=385&amp;oldid=prev</id>
		<title>WCS&gt;Anw: Added facility to generate table IDs for searchable tables if not specified.</title>
		<link rel="alternate" type="text/html" href="https://calidusassist.adcservices.apteancloud.com/calidus-assist/WCS/index.php?title=MediaWiki:Common.js&amp;diff=385&amp;oldid=prev"/>
		<updated>2024-08-20T08:00:26Z</updated>

		<summary type="html">&lt;p&gt;Added facility to generate table IDs for searchable tables if not specified.&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 all users on every page load. */&lt;br /&gt;
&lt;br /&gt;
// Javascript/jQuery code for searching tables&lt;br /&gt;
function search_table(tableID, value){  &lt;br /&gt;
	$('#'+tableID+' tr').each(function(){  &lt;br /&gt;
		 var found = 'false';  &lt;br /&gt;
		 if (!$(this).hasClass('non-searchable')) {&lt;br /&gt;
			 $(this).each(function(){  &lt;br /&gt;
				if ($(this).find('td.non-searchable').length &amp;gt; 0) {&lt;br /&gt;
					   found = 'true';  &lt;br /&gt;
				} else if (!$(this).find('th').length &amp;gt; 0) {&lt;br /&gt;
				  if($(this).text().toLowerCase().indexOf(value.toLowerCase()) &amp;gt;= 0)  &lt;br /&gt;
				  {  &lt;br /&gt;
					   found = 'true';  &lt;br /&gt;
				  }&lt;br /&gt;
				} else {&lt;br /&gt;
					// Always keep the header row&lt;br /&gt;
					found = 'true';&lt;br /&gt;
				}&lt;br /&gt;
			 });  &lt;br /&gt;
			 if(found == 'true')  &lt;br /&gt;
			 {  &lt;br /&gt;
				  $(this).show();  &lt;br /&gt;
			 }  &lt;br /&gt;
			 else  &lt;br /&gt;
			 {  &lt;br /&gt;
				  $(this).hide();  &lt;br /&gt;
			 }  &lt;br /&gt;
		 }&lt;br /&gt;
	});  &lt;br /&gt;
}  &lt;br /&gt;
$(document).ready(function(){&lt;br /&gt;
	$(&amp;quot;table.apt-searchable&amp;quot;).each(function(index, element) {&lt;br /&gt;
		var tableID = this.id;&lt;br /&gt;
		if (tableID == '') {&lt;br /&gt;
			tableID = &amp;quot;aptSearchableTable_&amp;quot; + (index + 1);&lt;br /&gt;
			$(this).attr(&amp;quot;id&amp;quot;, tableID);&lt;br /&gt;
		}&lt;br /&gt;
		$('&amp;lt;input type=&amp;quot;text&amp;quot; id=&amp;quot;'+tableID+'_'+index+'&amp;quot; onkeyup=&amp;quot;search_table(\''+tableID+'\',$(this).val())&amp;quot; placeholder=&amp;quot;Search the table...&amp;quot;&amp;gt;&amp;lt;input type=&amp;quot;button&amp;quot; onclick=&amp;quot;$(\'#'+tableID+'_'+index+'\').val(\'\');search_table(\''+tableID+'\',\'\')&amp;quot; title=&amp;quot;Clear Entry&amp;quot; class=&amp;quot;apt-search-clear&amp;quot;&amp;gt;').insertBefore($(this));&lt;br /&gt;
	});&lt;br /&gt;
});&lt;/div&gt;</summary>
		<author><name>WCS&gt;Anw</name></author>
	</entry>
</feed>