diff --git a/javascript/quickaddnew.js b/javascript/quickaddnew.js index ab8522f..8b361bf 100644 --- a/javascript/quickaddnew.js +++ b/javascript/quickaddnew.js @@ -18,7 +18,12 @@ jQuery.entwine("quickaddnew", function($) { URL: null, onmatch: function() { var self = this; - + + //Check to see if quickaddnew has been bound to this field before, sometimes jQuery plugins like Select2 + //will trigger a binding a second time that we don't want. + if($(this).parents().children('.quickaddnew-button').length > 0) { + return; + } // create add new button var button = $("