integration/v2/js/main.js
changeset 128 5ce3313fb21d
parent 119 9d2a4916ee7a
child 131 f7f6c6acf9b9
--- a/integration/v2/js/main.js	Wed Jun 19 15:15:05 2013 +0200
+++ b/integration/v2/js/main.js	Thu Jun 20 15:03:13 2013 +0200
@@ -26,5 +26,15 @@
 	$('.popin').bind('click', function(e){
 		e.stopPropagation();
 	});
-
+//tag it
+	var keywordsTagIt = $('.tag-it').tagit({
+		allowSpaces : true
+	});
+	$('.list-key-add a').bind('click', function(e){
+		e.preventDefault();
+		var tag = $(this).attr('data-tag');
+		keywordsTagIt.tagit("createTag", tag);
+	});
+	
+	
 });//ready