title: Modal boostrap data remote error
body: <p>I have an error appear on the console with this syntax. It doesn't take in consideration inside the script.</p>
  
  <p>When I am looking the modal appear but inside the console I have this:</p>
  
  <p>Thank you.</p>
  
  <blockquote>
    <p>TypeError: a is undefined</p>
  </blockquote>
  
  <pre><code>&lt;anonyme&gt;
  http:///boutique/ext/javascript/bootstrap/ajax_form/bootstrap_modal_remote_url.js:2:3
  
  console error (bootstrap_modal_remote_url.js)
  
      $('body').on('click', '[data-toggle="modal"]', function(){
        $($(this).data("target")+' .modal-body').load($(this).data("remote"));
      });
  </code></pre>
  
  <p>html line:</p>
  
  <pre><code>&lt;a data-banner-id="1" data-toggle="modal" data-target="#statsModal"&gt;&lt;img src="/admin/images/icons/statistics.gif" alt="icon_statistics" title="icon_statistics" /&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Below the code and the html rendering.</p>
  
  <p>script code (part of):</p>
  
  <pre><code> $(function() {
      var fetchStatsUrl = '&lt;?= addslashes($OSCOM_BannerManager-&gt;link('BannerManager&amp;FetchStats&amp;banners_id={{id}}')); ?&gt;';
  
      $('#statsModal').on('shown.bs.modal', function (e) {
        var json = $.getJSON(Mustache.render(fetchStatsUrl, {id: $(e.relatedTarget).data('banner-id')}), function(data) {
          if (typeof data.labels !== 'undefined') {
            $('#statsModal .statsModalContent').html('&lt;h4 class="modal-title"&gt;' + data.title + '&lt;/h4&gt;&lt;div id="banner_statistics"&gt;&lt;/div&gt;&lt;div class="text-right"&gt;&lt;span class="label label-info"&gt;Views&lt;/span&gt;&lt;span class="label label-danger"&gt;Clicks&lt;/span&gt;&lt;/div&gt;');
  </code></pre>
  
  <p>html script (part of):</p>
  
  <pre><code>$(function() {
      var fetchStatsUrl = 'http://boutique/admin/index.php?A&amp;Marketing%5CBannerManager&amp;BannerManager&amp;FetchStats&amp;banners_id=%7B%7Bid%7D%7D';
  
      $('#statsModal').on('shown.bs.modal', function (e) {
        var json = $.getJSON(Mustache.render(fetchStatsUrl, {id: $(e.relatedTarget).data('banner-id')}), function(data) {
          if (typeof data.labels !== 'undefined') {
            $('#statsModal .statsModalContent').html('&lt;h4 class="modal-title"&gt;' + data.title + '&lt;/h4&gt;&lt;div id="banner_statistics"&gt;&lt;/div&gt;&lt;div class="text-right"&gt;&lt;span class="label label-info"&gt;Views&lt;/span&gt;&lt;span class="label label-danger"&gt;Clicks&lt;/span&gt;&lt;/div&gt;');
  </code></pre>