Explorar o código

Avoid dropzone appearing when it should not by fixing
TopNav.isAttachmentReadonly logic

Haocen Xu %!s(int64=6) %!d(string=hai) anos
pai
achega
4984194c33
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      js/privatebin.js

+ 1 - 1
js/privatebin.js

@@ -4276,7 +4276,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
          */
         me.isAttachmentReadonly = function()
         {
-            return createButtonsDisplayed && $attach.hasClass('hidden');
+            return !createButtonsDisplayed || $attach.hasClass('hidden');
         }
 
         /**