From 6bb217f825a07dde3cc4d77d499eb6014454508c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 15 Mar 2014 16:32:41 -0400 Subject: [PATCH] Remove unused file --- js/jquery/jquery.crmtemplate.js | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 js/jquery/jquery.crmtemplate.js diff --git a/js/jquery/jquery.crmtemplate.js b/js/jquery/jquery.crmtemplate.js deleted file mode 100644 index a91433406f..0000000000 --- a/js/jquery/jquery.crmtemplate.js +++ /dev/null @@ -1,27 +0,0 @@ -(function( $ ){ - - /* applies the tpl (a selector of a template) to the data and puts it as the html of the object - * it triggers two events - * assign (to be able to alter the data) - * render (after the html has been added to the dom) to allow jquery event initialisations - * options.method = html (or after or before or any html injection jquery method - * - */ - - $.fn.crmTemplate = function(tpl,data,options) { - - var settings = $.extend( { - 'method': 'html', - }, options); - - var mustacheTpl = $(tpl); - mustacheTpl.trigger ('assign',data); - - return this.each(function() { - //$(this).html($.mustache(mustacheTpl.html(),data)).trigger('render',data); - $(this)[settings.method]($.mustache(mustacheTpl.html(),data)).trigger('render',data); - //mustacheTpl.trigger ('render',data); - }); - }; -})( jQuery ); - -- 2.25.1