From 39fefd961164f044298167251bdcd8656040fa29 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 28 Feb 2013 03:44:43 +0400 Subject: [PATCH] some tweeking (need to go easy on the box-shadows ;) )... Signed-off-by: Alex A. Naanou --- templates.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates.html b/templates.html index b4f10ce..1558d1a 100755 --- a/templates.html +++ b/templates.html @@ -185,13 +185,18 @@ $(function(){ .clone() .appendTo($('.container .preview')) .click(function(){ - alert(this.outerHTML) + $('.container').trigger('templateSelected', this) return false }) $('.container .preview') .css('display', 'block') }) + $('.container') + .on('templateSelected', function(evt, elem){ + alert(elem.outerHTML) + }) + })