From 4e3f96cfcd697610b72dbea111b2c319eb16ec3d Mon Sep 17 00:00:00 2001 From: Hannes Kirsman Date: Mon, 27 Jan 2020 20:44:57 +0200 Subject: [PATCH] #69 Add callback function to remove chained. --- jquery.chained.remote.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jquery.chained.remote.js b/jquery.chained.remote.js index f8e3a71..c45dfe8 100644 --- a/jquery.chained.remote.js +++ b/jquery.chained.remote.js @@ -79,6 +79,7 @@ build.call(self, json); /* Force updating the children. */ $(self).trigger("change"); + settings.callback(self); }); }); @@ -153,6 +154,7 @@ bootstrap: null, loading: null, clear: false, + callback: function() {}, data: function(json) { return json; } };