created template selecting

This commit is contained in:
Senad Uka
2016-02-21 11:59:13 +01:00
parent 7af44a6245
commit 709ce3e38c
46 changed files with 584 additions and 20 deletions

View 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();
});
});