web/data/cubicweb.edition.js
changeset 5909 9af8ac182f53
parent 5869 8a129b3a5aff
child 5935 348cf2a14cc1
--- a/web/data/cubicweb.edition.js	Tue Jul 06 17:11:44 2010 +0200
+++ b/web/data/cubicweb.edition.js	Tue Jul 06 17:15:25 2010 +0200
@@ -45,7 +45,7 @@
     var tabindex = (start == null) ? 15: start;
     cw.utils.nodeWalkDepthFirst(form, function(elem) {
         var tagName = elem.tagName.toUpperCase();
-        if (inputTypes.contains(tagName)) {
+        if ($.inArray(tagName, inputTypes)) {
             if (jQuery(elem).attr('tabindex') != null) {
                 tabindex += 1;
 		jQuery(elem).attr('tabindex', tabindex);
@@ -309,7 +309,7 @@
     var d = loadRemote('json', args);
     d.addCallback(function(response) {
         var dom = getDomFromResponse(response);
-        preprocessAjaxLoad(null, dom);
+        loadAjaxHtmlHead(dom);
         var form = jQuery(dom);
         form.css('display', 'none');
         form.insertBefore(insertBefore).slideDown('fast');
@@ -323,7 +323,7 @@
             //       to set encoding too.
             form.closest('form').attr('enctype', 'multipart/form-data').attr('encoding', 'multipart/form-data');
         }
-        postAjaxLoad(dom);
+        _postAjaxLoad(dom);
     });
     d.addErrback(function(xxx) {
         log('xxx =', xxx);