web/data/cubicweb.edition.js
brancholdstable
changeset 7258 2e7f0d6fa2d6
parent 6903 d16b42c1e517
child 7517 a05bad3aec2e
--- a/web/data/cubicweb.edition.js	Wed Apr 27 09:54:22 2011 +0200
+++ b/web/data/cubicweb.edition.js	Thu Apr 28 08:18:48 2011 +0200
@@ -45,7 +45,7 @@
     var tabindex = (start == null) ? 15: start;
     cw.utils.nodeWalkDepthFirst(form, function(elem) {
         var tagName = elem.tagName.toUpperCase();
-        if ($.inArray(tagName, inputTypes)) {
+        if (jQuery.inArray(tagName, inputTypes) != -1) {
             if (jQuery(elem).attr('tabindex') != null) {
                 tabindex += 1;
                 jQuery(elem).attr('tabindex', tabindex);
@@ -58,7 +58,7 @@
 
 function showMatchingSelect(selectedValue, eid) {
     if (selectedValue) {
-        divId = 'div' + selectedValue + '_' + eid;
+        var divId = 'div' + selectedValue + '_' + eid;
         var divNode = jQuery('#' + divId);
         if (!divNode.length) {
             var args = {