From 428a9d9c41fda50b84e562a23b9aa31b703c1d5f Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 12 Sep 2015 10:23:12 +0200 Subject: [PATCH] toggling mobile nav bar after tap on buttons "New", "Clone" and "Send" to ensure any messages are visible for #21. --- js/zerobin.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/zerobin.js b/js/zerobin.js index 479afb59..c7146382 100644 --- a/js/zerobin.js +++ b/js/zerobin.js @@ -764,6 +764,8 @@ $(function() { return; } + $('.navbar-toggle').click(); + this.password.addClass('hidden'); this.showStatus(i18n._('Sending paste...'), true); var randomkey = sjcl.codec.base64.fromBits(sjcl.random.randomWords(8, 0), 0); @@ -919,6 +921,7 @@ $(function() { this.showStatus('', false); this.message.text(this.clearText.text()); + $('.navbar-toggle').click(); }, /** @@ -929,6 +932,7 @@ $(function() { this.stateNewPaste(); this.showStatus('', false); this.message.text(''); + $('.navbar-toggle').click(); }, /**