diff --git a/fields/ref.py b/fields/ref.py
index 1fe3c27..777daf8 100644
--- a/fields/ref.py
+++ b/fields/ref.py
@@ -115,10 +115,12 @@ class Ref(Field):
-
+ onclick=":'onDeleteObject(%s,%s)' % (q(tiedUid), back)"/>
<\/div>");
+ injectChunk(hookElem, "
<\/div>", true);
}
if (xhrObjects[pos].xhr.readyState == 4) {
// We have received the HTML chunk
var hookElem = getAjaxHook(hook);
if (hookElem) {
- injectChunk(hookElem, xhrObjects[pos].xhr.responseText);
+ var content = xhrObjects[pos].xhr.responseText;
+ var searchTop = hook[0] == ':';
+ var injected = injectChunk(hookElem, content, false, searchTop);
// Call a custom Javascript function if required
if (xhrObjects[pos].onGet) {
- xhrObjects[pos].onGet(xhrObjects[pos], hookElem);
- }
- // Eval inner scripts if any
- var innerScripts = getElementsHavingName('div', 'appyHook');
- for (var i=0; i
::ztool.getJavascriptMessages()
-