created template selecting
This commit is contained in:
7
web/app/assets/javascripts/template_select_form.js
Normal file
7
web/app/assets/javascripts/template_select_form.js
Normal file
@@ -0,0 +1,7 @@
|
||||
$(document).ready(function() {
|
||||
$(".template-selection").click( function(event) {
|
||||
var templateId = event.target.id.match(/\d/g).join("");
|
||||
$("#template_id").val(templateId);
|
||||
$("#create_from_template_form").submit();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user