Commit fcf11195fc8f43dd31fe7b9e07e55f2541174f64
1 parent
99de6c2f
Exists in
master
and in
5 other branches
Now the modals will appear #234
Showing
3 changed files
with
4 additions
and
3 deletions
Show diff stats
courses/static/js/topic_editation_presentation.js
@@ -5,7 +5,8 @@ function show_editation(id_topic){ | @@ -5,7 +5,8 @@ function show_editation(id_topic){ | ||
5 | $(".presentation_"+ id_topic).css('display','none'); | 5 | $(".presentation_"+ id_topic).css('display','none'); |
6 | $(".editation_"+ id_topic).css('display','block'); | 6 | $(".editation_"+ id_topic).css('display','block'); |
7 | }; | 7 | }; |
8 | - function show_presentation(id_topic){ | 8 | + |
9 | +function show_presentation(id_topic){ | ||
9 | $(".editation_"+ id_topic).css('display','none'); | 10 | $(".editation_"+ id_topic).css('display','none'); |
10 | $(".presentation_"+ id_topic).css('display','block'); | 11 | $(".presentation_"+ id_topic).css('display','block'); |
11 | }; | 12 | }; |
files/static/js/file.js
1 | function get_modal_file(url, id, div_content){ | 1 | function get_modal_file(url, id, div_content){ |
2 | 2 | ||
3 | $.get(url, function (data) { | 3 | $.get(url, function (data) { |
4 | - $(div_content).empty(); | 4 | + $(div_content).detach(); |
5 | $(div_content).append(data); | 5 | $(div_content).append(data); |
6 | $(id).modal('show'); | 6 | $(id).modal('show'); |
7 | }); | 7 | }); |
links/static/js/links.js
1 | function get_modal_link(url, id,div_content){ | 1 | function get_modal_link(url, id,div_content){ |
2 | $.get(url, function (data) { | 2 | $.get(url, function (data) { |
3 | - $(div_content).empty(); | 3 | + $(div_content).detach(); |
4 | $(div_content).append(data); | 4 | $(div_content).append(data); |
5 | $(id).modal('show'); | 5 | $(id).modal('show'); |
6 | }); | 6 | }); |