From 3f2de319f38070bd3e8a409a099104a0940494c6 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 13 Nov 2016 18:22:37 +0100 Subject: [PATCH] should use typesafe comparison in JS and adding forgotten modal dialog in bootstrap-dark-page --- js/privatebin.js | 2 +- tpl/bootstrap-compact.php | 2 +- tpl/bootstrap-dark-page.php | 17 ++++++++++++++++- tpl/bootstrap-dark.php | 2 +- tpl/bootstrap-page.php | 2 +- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 7 files changed, 22 insertions(+), 7 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index d102f89d..8bfd7f75 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -615,7 +615,7 @@ $(function() { */ requestPassword: function() { - if (this.passwordModal.length == 0) { + if (this.passwordModal.length === 0) { var password = prompt(i18n._('Please enter the password for this paste:'), ''); if (password === null) { diff --git a/tpl/bootstrap-compact.php b/tpl/bootstrap-compact.php index 744998a5..fa937b59 100644 --- a/tpl/bootstrap-compact.php +++ b/tpl/bootstrap-compact.php @@ -52,7 +52,7 @@ if ($MARKDOWN): - + diff --git a/tpl/bootstrap-dark-page.php b/tpl/bootstrap-dark-page.php index 4993b59c..b1b92f85 100644 --- a/tpl/bootstrap-dark-page.php +++ b/tpl/bootstrap-dark-page.php @@ -52,7 +52,7 @@ if ($MARKDOWN): - + @@ -66,6 +66,21 @@ endif; +