title: WPML injects a div on all ajax calls causing media upload problems
body: <h2>Problem</h2>
  
  <p>I am facing problem of selecting uploaded media since I installed <strong>WPML 3.3.8</strong> and activated it. I am using <strong>WP 4.5.2 on apache 2.4/php 5.6.x</strong></p>
  
  <h3>So far</h3>
  
  <p>I have investigated this issue till I discovered that.
  For some reasons WPML injects this:</p>
  
  <pre><code>&lt;div id="lang_sel_click" onclick="wpml_language_selector_click.toggle(this);" class="lang_sel_click"&gt;&lt;ul&gt;
  ...&lt;/ul&gt;&lt;/div&gt;
  </code></pre>
  
  <p>on all <strong>ajax response</strong>.
  This means the ajax caller doesn't understand what's going on.</p>
  
  <h3>Speculations</h3>
  
  <p>I think there is a filter/hook of some sort which listen for ajax calls and response and there WPML injects it DIV.</p>
  
  <p>Any help will be appreciated.</p>