Skip to content

Commit

Permalink
most bootstrap modals don't close on click outside anymore (only info…
Browse files Browse the repository at this point in the history
… and alert still do)
  • Loading branch information
ChrFr committed Oct 23, 2019
1 parent 1018cbb commit ff3227e
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions repair/templates/common.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<!-- divs to put the modals in -->
<div id="alert-modal" class="modal fade" role="dialog" style="z-index: 99999;"></div>
<div id="info-modal" class="modal fade" role="dialog" style="z-index: 99999;"></div>
<div id="generic-modal" class="modal fade" role="dialog" style="z-index: 99999;"></div>
<div id="confirmation-modal" class="modal fade" role="dialog" style="z-index: 99999;"></div>
<div id="generic-modal" data-backdrop="static" class="modal fade" role="dialog" style="z-index: 99999;"></div>
<div id="confirmation-modal" data-backdrop="static" class="modal fade" role="dialog" style="z-index: 99999;"></div>

<!-- template for alerts -->

Expand Down
2 changes: 1 addition & 1 deletion repair/templates/conclusions/workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h3 id="keyflow-warning" style="display: none;"><span class="glyphicon glyphicon
</button>
</div>
</div>
<div id="add-conclusion-modal" class="modal fade" role="dialog">
<div id="add-conclusion-modal" data-backdrop="static" class="modal fade" role="dialog">
<div id="manage-conclusions-modal"></div>
<div class="modal-dialog modal-lg">
<div class="modal-content col-md-12">
Expand Down
10 changes: 5 additions & 5 deletions repair/templates/dataentry/actors-flows.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h3 id="select-actors-tip" class="row"><span class="glyphicon glyphicon-arrow-le
</div>
</div>
</div>
<div id="actor-select-modal" class="modal fade" role="dialog">
<div id="actor-select-modal" data-backdrop="static" class="modal fade" role="dialog">
<div class="modal-dialog modal-lg" style="width: 80%;">
<div class="modal-content col-md-12">
<div class="modal-header">
Expand Down Expand Up @@ -162,7 +162,7 @@ <h4> <span class="fa fa-warehouse" style="margin-right: 5px;"></span> {% trans "
</button>
</div>
</div>
<div id="datasource-modal" class="modal fade" role="dialog" style='z-index: 1101;'> <!-- has to be infront of composition modal -->
<div id="datasource-modal" data-backdrop="static" class="modal fade" role="dialog" style='z-index: 1101;'> <!-- has to be infront of composition modal -->
<div class="modal-dialog modal-lg" style="width: 80%;">
<!-- Modal content-->
<div class="modal-content col-md-12">
Expand Down Expand Up @@ -202,7 +202,7 @@ <h4 class="modal-title">{% trans "Edit Datasource" %}</h4>
</div>
</div>
</div>
<div id="flow-nodes-modal" class="modal fade" role="dialog">
<div id="flow-nodes-modal" data-backdrop="static" class="modal fade" role="dialog">
<div class="modal-dialog modal-lg" style="width: 80%;">
<div class="modal-content col-md-12">
<div class="modal-header">
Expand All @@ -220,7 +220,7 @@ <h4 class="modal-title"></h4>
</div>
</div>
</div>
<div id="fractions-modal" class="modal fade" role="dialog" style='z-index: 1100;'> <!-- has to behind datasource modal -->
<div id="fractions-modal" data-backdrop="static" class="modal fade" role="dialog" style='z-index: 1100;'> <!-- has to behind datasource modal -->
</div>
</script>

Expand Down Expand Up @@ -486,7 +486,7 @@ <h4 class="row"> {% trans "Locations" %} </h4>
</button>
</div>
</div>
<div id="location-modal" class="modal fade" role="dialog">
<div id="location-modal" data-backdrop="static" class="modal fade" role="dialog">
<div class="modal-dialog modal-lg">
<!-- Modal content-->
<div class="modal-content col-md-12">
Expand Down
2 changes: 1 addition & 1 deletion repair/templates/dataentry/actors.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ <h4 class="row"> {% trans "Locations" %} </h4>
</button>
</div>
</div>
<div id="location-modal" class="modal fade" role="dialog">
<div id="location-modal" data-backdrop="static" class="modal fade" role="dialog">
<div class="modal-dialog modal-lg">
<!-- Modal content-->
<div class="modal-content col-md-12">
Expand Down
2 changes: 1 addition & 1 deletion repair/templates/dataentry/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h3 id="keyflow-warning"><span class="glyphicon glyphicon-arrow-left"></span> {
</div>
</div>
<!-- modal for creation of keyflows -->
<div id="create-keyflow-modal" class="modal fade" role="dialog">
<div id="create-keyflow-modal" data-backdrop="static" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Expand Down
14 changes: 7 additions & 7 deletions repair/templates/strategy/solutions.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h4>{% trans "Activities involved" %}</h4>
</div>
</div>
</div>
<div id="add-solution-modal" class="modal fade" role="dialog" style="z-index: 10000;">
<div id="add-solution-modal" data-backdrop="static" class="modal fade" role="dialog" style="z-index: 10000;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Expand All @@ -94,7 +94,7 @@ <h4 class="modal-title"> Add Solution </h4>
</div>
</div>
</div>
<div id="categories-modal" class="modal fade" role="dialog" style="z-index: 10000;"></div>
<div id="categories-modal" data-backdrop="static" class="modal fade" role="dialog" style="z-index: 10000;"></div>
</script>

<!-- modal for editing categories -->
Expand Down Expand Up @@ -177,7 +177,7 @@ <h4>{% trans "Notes (visible in setup mode only)" %} </h4>
<textarea class="sunken bordered" rows="20" name="notes" style="width: 100%; resize: vertical;"></textarea>
</div>
</div>
<div id="solution-part-modal" class="modal fade" role="dialog" style="z-index: 10000;">
<div id="solution-part-modal" data-backdrop="static" class="modal fade" role="dialog" style="z-index: 10000;">
<div class="modal-dialog modal-lg" style="width: 80%; -webkit-transform: none; transform: none;">
<div class="modal-content col-md-12">
<div class="modal-header">
Expand All @@ -192,7 +192,7 @@ <h4 class="modal-title">{% trans "Edit Solution Part" %}</h4>
</div>
</div>
</div>
<div id="question-modal" class="modal fade" role="dialog" style="z-index: 10000;">
<div id="question-modal" data-backdrop="static" class="modal fade" role="dialog" style="z-index: 10000;">
<div class="modal-dialog modal-lg">
<div class="modal-content col-md-12">
<div class="modal-header">
Expand All @@ -207,7 +207,7 @@ <h4 class="modal-title">{% trans "Edit Question" %}</h4>
</div>
</div>
</div>
<div id="area-modal" class="modal fade" role="dialog" style="z-index: 10000;">
<div id="area-modal" data-backdrop="static" class="modal fade" role="dialog" style="z-index: 10000;">
<div class="modal-dialog modal-lg" style="width: 80%; -webkit-transform: none; transform: none;">
<div class="modal-content col-md-12">
<div class="modal-header">
Expand All @@ -223,7 +223,7 @@ <h4 class="modal-title">{% trans "Edit Possible Implementation Area" %}</h4>
</div>
</div>
</div>
<div id="schemes-modal" class="modal fade" role="dialog" style="z-index: 10000;">
<div id="schemes-modal" data-backdrop="static" class="modal fade" role="dialog" style="z-index: 10000;">
<div class="modal-dialog modal-lg" style="width: 80%; -webkit-transform: none; transform: none;">
<div class="modal-content">
<div class="modal-header">
Expand Down Expand Up @@ -312,7 +312,7 @@ <h4 id="selected-scheme-title"></h4>
<h3> {% trans "Solutions for the key flow" %} <i><%= keyflowName %></i> </h3>
<div id="categories" class="row overflow">
</div>
<div id="solution-modal" class="modal fade" role="dialog" style="z-index: 10000;"></div>
<div id="solution-modal" data-backdrop="static" class="modal fade" role="dialog" style="z-index: 10000;"></div>
</script>

<!-- possible implementation area -->
Expand Down
2 changes: 1 addition & 1 deletion repair/templates/strategy/strategy.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h3> {% trans "Define your strategy for the key flow" %} <i><%= keyflowName %></
<div id="solution-strategy-modal" class="modal fade" role="dialog" style="z-index: 10000;"></div>
</div>

<div id="add-solution-modal" class="modal fade" role="dialog">
<div id="add-solution-modal" data-backdrop="static" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Expand Down
2 changes: 1 addition & 1 deletion repair/templates/studyarea/charts.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h4 style="float: left;"> {% trans "Charts" %} </h4>
<div class="col-md-6 bordered" id="chart-image-wrapper"></div>
</div>
</div>
<div class="modal fade" role="dialog" id="add-chart-modal" style="z-index: 10000;">
<div class="modal fade" data-backdrop="static" role="dialog" id="add-chart-modal" style="z-index: 10000;">
<div class="modal-dialog" style='-webkit-transform: none; transform: none;'>
<div class="modal-content">
<div class="modal-header">
Expand Down
2 changes: 1 addition & 1 deletion repair/templates/studyarea/maps.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h4> {% trans "Legend" %} </h4>
</div>
</div>
</div>
<div class="modal fade" role="dialog" id="add-layer-modal">
<div class="modal fade" data-backdrop="static" role="dialog" id="add-layer-modal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
Expand Down

0 comments on commit ff3227e

Please sign in to comment.