Commit 4f289756 by Bence Dányi

webui: add template edit js functions

parent 4c937b01
...@@ -140,6 +140,19 @@ $(function() { ...@@ -140,6 +140,19 @@ $(function() {
}) })
$('#modal').show(); $('#modal').show();
}); });
$('.edit-template').click(function(e){
e.preventDefault();
e.stopPropagation();
var id=$(this).data('id');
$.ajax({
type: 'GET',
url: '/ajax/templateEditWizard/'+id+'/',
success: function(data){
$('#modal').show();
$('#modal-container').html(data);
}
});
})
$('#shadow').click(function() { $('#shadow').click(function() {
$('#modal').hide(); $('#modal').hide();
$('#modal-container').html(''); $('#modal-container').html('');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment