Commit 272a1c82 by Dányi Bence

webui: fix DOM magic

parent b5394e24
...@@ -85,6 +85,7 @@ $(function() { ...@@ -85,6 +85,7 @@ $(function() {
}); });
$('#shadow').click(function() { $('#shadow').click(function() {
$('#modal').hide(); $('#modal').hide();
$('#modal-container').html('');
}) })
$('.template-share').click(function(e) { $('.template-share').click(function(e) {
e.preventDefault(); e.stopPropagation(); e.preventDefault(); e.stopPropagation();
...@@ -112,10 +113,12 @@ $(function() { ...@@ -112,10 +113,12 @@ $(function() {
}); });
$('#new-group').click(function() { $('#new-group').click(function() {
var content = $('#new-group-wizard').html(); var content = $('#new-group-wizard').html();
// $('#new-group-wizard').parent()[0].removeChild($('#new-group-wizard')[0]); $('#new-group-wizard').html('');
$('#modal').show(); $('#modal').show();
$('#modal-container').html(content); $('#modal-container').html(content);
$('#shadow').click(function() {
$('#new-group-wizard').html(content);
})
function updateSummary() { function updateSummary() {
$('#new-group-summary-name').html($('#new-group-name').val()); $('#new-group-summary-name').html($('#new-group-name').val());
$('#new-group-summary-count').html(function(text) { $('#new-group-summary-count').html(function(text) {
......
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