// updated dynamically using the 'change' function below
a.tablesorter.addParser({id:"inputs",is:function(){return!1},format:function(b,c,d){vare=a(d).find("input");returne.length?e.val():b},parsed:!0,// filter widget flag
type:"text"}),a.tablesorter.addParser({id:"inputs-numeric",is:function(){return!1},format:function(b,c,d){vare=a(d).find("input"),f=e.length?e.val():b,g=a.tablesorter.formatFloat((f||"").replace(/[^\w,. \-()]/g,""),c);returnb&&"number"==typeofg?g:b?a.trim(b&&c.config.ignoreCase?b.toLocaleLowerCase():b):b},parsed:!0,// filter widget flag
type:"numeric"}),
// Custom parser for including checkbox status if using the grouping widget
// updated dynamically using the 'change' function below
// adding class to row, indicating that a checkbox is checked; includes
// a column index in case more than one checkbox happens to be in a row
// don't remove checked class if other columns have a check
returng.toggleClass(i+"-"+e,l),l?g.addClass(i):g.length&&!(g[0].className||"").match(i+"-")&&g.removeClass(i),k.length?j[l?0:1]:b},parsed:!0,// filter widget flag
type:"text"}),
// Custom parser which returns the currently selected options
// updated dynamically using the 'change' function below
a.tablesorter.addParser({id:"select",is:function(){return!1},format:function(b,c,d){vare=a(d).find("select");returne.length?e.val():b},parsed:!0,// filter widget flag
type:"text"}),
// Select parser to get the selected text
a.tablesorter.addParser({id:"select-text",is:function(){return!1},format:function(b,c,d){vare=a(d).find("select");returne.length?e.find("option:selected").text()||"":b},parsed:!0,// filter widget flag
type:"text"}),
// Custom parser for parsing textarea values
// updated dynamically using the 'change' function below
a.tablesorter.addParser({id:"textarea",is:function(){return!1},format:function(b,c,d){vare=a(d).find("textarea");returne.length?e.val():b},parsed:!0,// filter widget flag
type:"text"}),
// update select and all input types in the tablesorter cache when the change event fires.
// This method only works with jQuery 1.7+
// you can change it to use delegate (v1.4.3+) or live (v1.3+) as desired
// if this code interferes somehow, target the specific table $('#mytable'), instead of $('table')