From a2024bee68c43ac65483ba390a7cfb3281e9e7a5 Mon Sep 17 00:00:00 2001 From: Chris Turner Date: Mon, 8 Jun 2015 12:25:35 +1200 Subject: [PATCH] Corrected poor loading of jquery. --- js/font-awesome-module.js | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) 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);