Преглед изворни кода

toggling mobile nav bar after tap on buttons "New", "Clone" and "Send"
to ensure any messages are visible for #21.

El RIDO пре 11 година
родитељ
комит
428a9d9c41
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      js/zerobin.js

+ 4 - 0
js/zerobin.js

@@ -764,6 +764,8 @@ $(function() {
                 return;
                 return;
             }
             }
 
 
+            $('.navbar-toggle').click();
+            this.password.addClass('hidden');
             this.showStatus(i18n._('Sending paste...'), true);
             this.showStatus(i18n._('Sending paste...'), true);
 
 
             var randomkey = sjcl.codec.base64.fromBits(sjcl.random.randomWords(8, 0), 0);
             var randomkey = sjcl.codec.base64.fromBits(sjcl.random.randomWords(8, 0), 0);
@@ -919,6 +921,7 @@ $(function() {
 
 
             this.showStatus('', false);
             this.showStatus('', false);
             this.message.text(this.clearText.text());
             this.message.text(this.clearText.text());
+            $('.navbar-toggle').click();
         },
         },
 
 
         /**
         /**
@@ -929,6 +932,7 @@ $(function() {
             this.stateNewPaste();
             this.stateNewPaste();
             this.showStatus('', false);
             this.showStatus('', false);
             this.message.text('');
             this.message.text('');
+            $('.navbar-toggle').click();
         },
         },
 
 
         /**
         /**