mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Fix accordion header links - ignore parenthesis
This commit is contained in:
parent
5cafeb49a7
commit
b0efc37d28
@ -167,7 +167,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h3><a href="#"><strong>Default Select</strong> ("First Name" column)</a></h3>
|
||||
<h3><a href="#"><strong>Default Select</strong></a> <span class="xsmall">("First Name" column)</span></h3>
|
||||
<div>
|
||||
<ul>
|
||||
<li>To enable this type of select, set the <code>filter_functions</code> option for the column to <code>true</code>,<pre class="prettyprint lang-javascript">filter_functions : {
|
||||
@ -185,7 +185,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h3><a href="#"><strong>Custom Filter Function</strong> ("Last Name" column)</a></h3>
|
||||
<h3><a href="#"><strong>Custom Filter Function</strong></a> <span class="xsmall">("Last Name" column)</span></h3>
|
||||
<div>
|
||||
<ul>
|
||||
<li>To enable this type of filter, add your custom function to the <code>filter_functions</code> option following this example:<pre class="prettyprint lang-javascript">filter_functions : {
|
||||
@ -202,7 +202,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h3><a href="#"><strong>Custom Select</strong> ("City" or "Total" column)</a></h3>
|
||||
<h3><a href="#"><strong>Custom Select</strong></a> <span class="xsmall">("City" or "Total" column)</span></h3>
|
||||
<div>
|
||||
<ul>
|
||||
<li>To enable this type of select, add your custom options within the <code>filter_functions</code> option.</li>
|
||||
@ -235,7 +235,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h3><a href="#"><strong>Default Select showing only available options ("Discount" column)</strong></a></h3>
|
||||
<h3><a href="#"><strong>Default Select with only available options</strong></a> <span class="xsmall">("Discount" column)</span></h3>
|
||||
<div>
|
||||
<ul>
|
||||
<li>This column uses the same method as the "First Name" column with one exception, it also includes the "filter-onlyAvail" class name in the header
|
||||
|
@ -95,7 +95,7 @@ $(function(){
|
||||
var hashId = 0;
|
||||
if (window.location.hash) {
|
||||
$t.children('h3').each(function(i){
|
||||
var txt = $(this).find('a').text().toLowerCase().replace(/\s+/g,'_').replace(/[()\"]/g,'');
|
||||
var txt = $(this).find('a').text().toLowerCase().replace(/[()\"]/g,'').replace(/[\s+\/]/g,'_');
|
||||
this.id = txt;
|
||||
if (txt === window.location.hash.slice(1)) {
|
||||
hashId = i;
|
||||
@ -109,7 +109,7 @@ $(function(){
|
||||
collapsible: true,
|
||||
create: function( event, ui ) {
|
||||
$t.children('h3').each(function(i){
|
||||
this.id = $(this).find('a').text().toLowerCase().replace(/\s+/g,'_').replace(/[()\"]/g,'');
|
||||
this.id = $(this).find('a').text().toLowerCase().replace(/[-()\"]/g,'').replace(/[\s+\/]/g,'_');
|
||||
$(this).before('<a class="accordion-link link" data-index="' + i + '" href="#' + this.id + '"></a>');
|
||||
});
|
||||
$t.find('.accordion-link').click(function(){
|
||||
|
Loading…
Reference in New Issue
Block a user