diff --git a/js/font-awesome-module.js b/js/font-awesome-module.js index 9e87a9a..8478ebd 100644 --- a/js/font-awesome-module.js +++ b/js/font-awesome-module.js @@ -1,11 +1,20 @@ -(function ($) {})(window.jQuery); +(function ($) { + $.entwine(function ($) { -jQuery(function ($) { - "use strict"; + /** + * Class: .icp-auto + * + * Load the icon picker + */ + $('.icp-auto').entwine({ + onmatch: function () { + $('.icp-auto').iconpicker({ + hideOnSelect: true, + inputSearch: true + }); + } + }); - $(function () { - $('.icp-auto').iconpicker({ - }) }); -}); +})(jQuery);