From d40ff6a4d2a88c0d647780c08b9c0d764335d079 Mon Sep 17 00:00:00 2001 From: JDM Digital Date: Wed, 5 Oct 2016 16:05:25 -0500 Subject: [PATCH 1/4] Add Callback and Two New Options I like the idea of adding a callback to the plugin as well as two new options. Addresses my "issue" here: https://github.com/rbayliss/Dropdown-Table-Filter/issues/12 --- ddtf.js | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/ddtf.js b/ddtf.js index b25da1e..ddd0a38 100644 --- a/ddtf.js +++ b/ddtf.js @@ -1,6 +1,6 @@ (function($) { -$.fn.ddTableFilter = function(options) { +$.fn.ddTableFilter = function(options,callback) { options = $.extend(true, $.fn.ddTableFilter.defaultOptions, options); return this.each(function() { @@ -16,7 +16,12 @@ $.fn.ddTableFilter = function(options) { var selectbox = $('