title: Background appears only once
body: <p>I am asking to help solve the following issue. 
  <a href="https://jsfiddle.net/2Lrn7wv7/" rel="nofollow">https://jsfiddle.net/2Lrn7wv7/</a></p>
  
  <p>When you want to add a new tab (clicking on a tab with “+” sign) a popup window with dark background appears.
  If you then add more tabs the popup appears without any background. 
  Thus, the dark background appears only first time you call the popup window.
  I guess smth wrong goes inside these lines (lines 4-25 in JS FIddle):</p>
  
  <pre><code>$("#tab_0").click(function () {
      $("#popup__bgr").fadeIn(300,
          function () {
              $("#popup").css("display", "block").animate({opacity: 1, top: '50%'}, 200);
          });
      $(function () {
          $("#inputName").val("");
      });
  });
  </code></pre>