Javascript Tablesorter事件源不够具体。取消排序

Javascript Tablesorter事件源不够具体。取消排序,javascript,sorting,events,tablesorter,Javascript,Sorting,Events,Tablesorter,我有一张像这样的桌子 及其HTML: <th style="text-align: center; background-color: rgb(255, 255, 255); position: relative; top: 0px; -moz-user-select: none;" data-column="4" class="tablesorter-header tablesorter-headerDesc" tabindex="0" scope="col" role="column

我有一张像这样的桌子

及其HTML:

<th style="text-align: center; background-color: rgb(255, 255, 255); position: relative; top: 0px; -moz-user-select: none;" data-column="4" class="tablesorter-header tablesorter-headerDesc" tabindex="0" scope="col" role="columnheader" aria-disabled="false" aria-controls="dataTable" unselectable="on" aria-sort="descending" aria-label="DI: Descending sort applied, activate to apply an ascending sort" data-sortedby="user">
    <div class="tablesorter-header-inner">
        <i onclick="javascript:ShowFilter(event,'dDICategory');" class="fa fa-filter"/>
        <i class="fa fa-sort-asc sort-icon"/>
        <i class="fa fa-sort-desc sort-icon"/>
        <i class="fa fa-sort sort-icon"/>DI<div id="helpIcon" data-toggle="modal" data-target="#DIColumnHelpModal">
            <span class="glyphicon glyphicon-question-sign pull-right"/>
        </div>
    </div>
</th>

DI
正如你所看到的,我有一个过滤器,对上下指针进行排序,还有一个帮助图标

我的问题是,当我单击问号时,表格会在显示帮助模式之前进行排序。我不想要

我希望能够做到以下几点:

如果事件源是sort asc或sort desc glyph,则让排序事件继续。 如果事件源是过滤器图示符,请不要排序并执行ShowFilter函数。 如果事件源是问号图示符,则不要排序并显示模式

因此,我需要获取事件的实际来源(sort asc/sort desc、filter或问号)。但问题是,当我检查event.target的内容时,得到的是整个表。我不知道如何得到更具体的答案


当然,一旦我知道哪个glyph触发了事件,我想我需要取消排序事件

表排序器noSort
类名添加到过滤器图标元素中;如果要重命名该类,请参阅。

表排序器noSort
类名添加到过滤器图标元素;如果要重命名该类,请参阅