notebook/app/assets/javascripts/pickers.js
Euan Kemp ef480f22d2 move .js.js files -> .js
.js.coffee made more sense I guess; simplify down the extension to the
expected one.
2020-09-18 20:09:42 -07:00

5 lines
166 B
JavaScript

$(document).ready(() => $('.dropdown-picker li a').click(function() {
const val = $(this).text();
$(this).closest('.row').find('input[type=text]').val(val);
}));