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

HUE-5853 [core] Better JS and CSS loading detection on responsive

Enrico Berti пре 8 година
родитељ
комит
2dbc37a
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      desktop/core/src/desktop/templates/responsive.mako

+ 2 - 1
desktop/core/src/desktop/templates/responsive.mako

@@ -712,7 +712,7 @@ ${ assist.assistPanel() }
               dataType: 'html',
               success: function (response) {
                 self.extraEmbeddableURLParams('');
-                var r = $(response);
+                var r = $('<span>').html(response);
                 r.find('link').each(function () {
                   $(this).attr('href', $(this).attr('href') + '?' + Math.random())
                 });
@@ -733,6 +733,7 @@ ${ assist.assistPanel() }
                   }
                   $(this).remove();
                 });
+                r.unwrap('<span>');
                 if (self.SKIP_CACHE.indexOf(newVal) === -1) {
                   self.embeddable_cache[newVal] = r;
                 }