web/data/cubicweb.ajax.js
changeset 9536 1e39c5e91b68
parent 9259 68cde7431c2c
parent 9523 cd5738fc440f
child 9550 0188e957ce84
child 9700 da7d341cca76
--- a/web/data/cubicweb.ajax.js	Wed Feb 12 17:32:49 2014 +0100
+++ b/web/data/cubicweb.ajax.js	Fri Feb 14 16:10:36 2014 +0100
@@ -200,7 +200,7 @@
     },
 
     _loadAjaxScripts: function($responseHead, $head) {
-        $responseHead.find('pre.script').each(function(i) {
+        $responseHead.find('cubicweb\\:script').each(function(i) {
             var $srcnode = $(this);
             var url = $srcnode.attr('src');
             if (url) {
@@ -222,7 +222,7 @@
     	        jQuery.globalEval($srcnode.text());
     	    }
         });
-        $responseHead.find('pre.script').remove();
+        $responseHead.find('cubicweb\\:script').remove();
     }
 });