web/data/cubicweb.ajax.js
branchstable
changeset 9523 cd5738fc440f
parent 8880 1cad6662e199
child 9536 1e39c5e91b68
--- a/web/data/cubicweb.ajax.js	Mon Feb 03 19:07:58 2014 +0100
+++ b/web/data/cubicweb.ajax.js	Wed Feb 05 16:34:21 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();
     }
 });