equal
deleted
inserted
replaced
50 e.preventDefault(); |
50 e.preventDefault(); |
51 var tag = $(this).attr('data-tag'); |
51 var tag = $(this).attr('data-tag'); |
52 keywordsTagIt.tagit("createTag", tag); |
52 keywordsTagIt.tagit("createTag", tag); |
53 }); |
53 }); |
54 } |
54 } |
55 //map |
55 |
|
56 |
|
57 // add item to collection behaviour |
|
58 $('.additemtocollection').bind('click', function(e){ |
|
59 // When an item meant to be added to a collection is clicked, |
|
60 // we fill the form in the add-to-collection div |
|
61 console.log(this + ", " + $(this) + ", " + $(this).attr('data-type') + ", " + $(this).attr('data-id')); |
|
62 $('#add-to-collection .item-type').val($(this).attr('data-type')); |
|
63 $('#add-to-collection .item-id').val($(this).attr('data-id')); |
|
64 }); |
|
65 |
|
66 |
|
67 //map |
56 if($('#map').length){ |
68 if($('#map').length){ |
57 initmap() |
69 initmap() |
58 } |
70 } |
59 function initmap() { |
71 function initmap() { |
60 // set up the map |
72 // set up the map |