Commit fcf11195fc8f43dd31fe7b9e07e55f2541174f64

Authored by fbormann
1 parent 99de6c2f

Now the modals will appear #234

courses/static/js/topic_editation_presentation.js
... ... @@ -5,7 +5,8 @@ function show_editation(id_topic){
5 5 $(".presentation_"+ id_topic).css('display','none');
6 6 $(".editation_"+ id_topic).css('display','block');
7 7 };
8   - function show_presentation(id_topic){
  8 +
  9 +function show_presentation(id_topic){
9 10 $(".editation_"+ id_topic).css('display','none');
10 11 $(".presentation_"+ id_topic).css('display','block');
11 12 };
... ...
files/static/js/file.js
1 1 function get_modal_file(url, id, div_content){
2 2  
3 3 $.get(url, function (data) {
4   - $(div_content).empty();
  4 + $(div_content).detach();
5 5 $(div_content).append(data);
6 6 $(id).modal('show');
7 7 });
... ...
links/static/js/links.js
1 1 function get_modal_link(url, id,div_content){
2 2 $.get(url, function (data) {
3   - $(div_content).empty();
  3 + $(div_content).detach();
4 4 $(div_content).append(data);
5 5 $(id).modal('show');
6 6 });
... ...