Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Checking values

  • Loading branch information...
commit 467577e2532f8ba7ef9b9cbdfcedd72eee3b9ed6 1 parent dccead9
Frances Berriman authored phae committed
Showing with 20 additions and 1 deletion.
  1. +20 −1 app/assets/javascripts/licence-finder.js
View
21 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){
+
+ }
});
Please sign in to comment.
Something went wrong with that request. Please try again.