Permalink
Browse files

Checking values

  • Loading branch information...
1 parent dccead9 commit 467577e2532f8ba7ef9b9cbdfcedd72eee3b9ed6 Frances Berriman committed with phae May 17, 2012
Showing with 20 additions and 1 deletion.
  1. +20 −1 app/assets/javascripts/licence-finder.js
@@ -1,4 +1,23 @@
$(function() {
- // licence finder whizzy
+
+ $(".search-picker a").on("click", function(e){
+ console.log($(this).parent().children("span").text())
+
+ var id = $(this);
+ console.log(id);
+
+ addLicence($(this).parent().children("span").text(), id)
+
+ e.preventDefault();
+ return false;
+ })
+
+ function addLicence(plainTextTitle, id){
+ console.log("plaintext: "+plainTextTitle+" id: "+id);
+ }
+
+ function removeLicence(id){
+
+ }
});

0 comments on commit 467577e

Please sign in to comment.