Merge pull request #327 from riker09/master

Widget option "filter_reset" for dynamically added elements
This commit is contained in:
Rob G 2013-10-09 19:45:08 -07:00
commit b561ff4471

View File

@ -701,8 +701,8 @@ ts.addWidget({
}).get();
// reset button/link
if (wo.filter_reset && $(wo.filter_reset).length){
$(wo.filter_reset).bind('click.tsfilter', function(){
if (wo.filter_reset){
$(document).on('click.tsfilter', wo.filter_reset, function(){
$t.trigger('filterReset');
});
}