[js] Fix loading image URL 3.24
authorFlorent Cayré <florent.cayre@logilab.fr>
Thu, 02 Feb 2017 14:58:39 +0100
branch3.24
changeset 11949 1372d9f80c70
parent 11948 73ed9c204de9
child 12065 a9c710632863
[js] Fix loading image URL
cubicweb/web/data/cubicweb.ajax.js
--- a/cubicweb/web/data/cubicweb.ajax.js	Mon Feb 06 11:21:31 2017 +0100
+++ b/cubicweb/web/data/cubicweb.ajax.js	Thu Feb 02 14:58:39 2017 +0100
@@ -461,7 +461,9 @@
     }
     for (var i = 0; i < fragments.length; i++) {
         var fragment = fragments[i];
-        fragment.innerHTML = '<h3>' + LOADING_MSG + ' ... <img src="data/loading.gif" /></h3>';
+        fragment.innerHTML = (
+            '<h3>' + LOADING_MSG +
+                ' ... <img src="' + BASE_URL + 'data/loading.gif" /></h3>');
         var $fragment = jQuery(fragment);
         // if cubicweb:loadurl is set, just pick the url et send it to loadxhtml
         var url = $fragment.attr('cubicweb:loadurl');