Browse Source

Static backdrop for timeout dialog. So dragging sliders doesn't accidentally close the dialog.

pull/7/head
Pēteris Caune 9 years ago
parent
commit
16763fcde0
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      static/js/checks.js
  2. +3
    -3
      templates/front/my_checks.html

+ 1
- 1
static/js/checks.js View File

@ -90,7 +90,7 @@ $(function () {
$("#update-timeout-form").attr("action", $this.data("url")); $("#update-timeout-form").attr("action", $this.data("url"));
frequencySlider.noUiSlider.set($this.data("timeout")) frequencySlider.noUiSlider.set($this.data("timeout"))
graceSlider.noUiSlider.set($this.data("grace")) graceSlider.noUiSlider.set($this.data("grace"))
$('#update-timeout-modal').modal("show");
$('#update-timeout-modal').modal({"show":true, "backdrop":"static"});
return false; return false;
}); });


+ 3
- 3
templates/front/my_checks.html View File

@ -113,7 +113,7 @@
</div> </div>
<div id="update-name-modal" class="modal fade">
<div id="update-name-modal" class="modal">
<div class="modal-dialog"> <div class="modal-dialog">
<form id="update-name-form" method="post"> <form id="update-name-form" method="post">
{% csrf_token %} {% csrf_token %}
@ -142,7 +142,7 @@
</div> </div>
</div> </div>
<div id="update-timeout-modal" class="modal fade">
<div id="update-timeout-modal" class="modal">
<div class="modal-dialog"> <div class="modal-dialog">
<form id="update-timeout-form" method="post"> <form id="update-timeout-form" method="post">
{% csrf_token %} {% csrf_token %}
@ -202,7 +202,7 @@
</div> </div>
</div> </div>
<div id="remove-check-modal" class="modal fade">
<div id="remove-check-modal" class="modal">
<div class="modal-dialog"> <div class="modal-dialog">
<form id="remove-check-form" method="post"> <form id="remove-check-form" method="post">
{% csrf_token %} {% csrf_token %}


Loading…
Cancel
Save