From 16763fcde02177867f7fb0d25fb590b06623f9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Thu, 16 Jul 2015 10:28:45 +0300 Subject: [PATCH] Static backdrop for timeout dialog. So dragging sliders doesn't accidentally close the dialog. --- static/js/checks.js | 2 +- templates/front/my_checks.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/checks.js b/static/js/checks.js index b5c409ee..40c9612b 100644 --- a/static/js/checks.js +++ b/static/js/checks.js @@ -90,7 +90,7 @@ $(function () { $("#update-timeout-form").attr("action", $this.data("url")); frequencySlider.noUiSlider.set($this.data("timeout")) graceSlider.noUiSlider.set($this.data("grace")) - $('#update-timeout-modal').modal("show"); + $('#update-timeout-modal').modal({"show":true, "backdrop":"static"}); return false; }); diff --git a/templates/front/my_checks.html b/templates/front/my_checks.html index bf69469c..4f36f303 100644 --- a/templates/front/my_checks.html +++ b/templates/front/my_checks.html @@ -113,7 +113,7 @@ -