261bb01964e0462fc8fca919bcd3d493796b768e
tdreszer
  Mon Jun 23 12:20:07 2014 -0700
Surprising fallout from jshint changes. Fix for redmine #13492.
diff --git src/hg/js/utils.js src/hg/js/utils.js
index 65ccb53..ab0b83a 100644
--- src/hg/js/utils.js
+++ src/hg/js/utils.js
@@ -148,31 +148,31 @@
          }
       }
     }
     return unescape(strReturn);
 }
 
 function makeHiddenInput(theForm,aName,aValue)
 {   // Create a hidden input to hold a value
     $(theForm).find("input:last").after("<input type=hidden name='"+aName+"' value='"+aValue+"'>");
 }
 
 function updateOrMakeNamedVariable(theForm,aName,aValue)
 {   // Store a value to a named input.  Will make the input if necessary
     var inp = normed($(theForm).find("input[name='"+aName+"']:last"));
     if (inp) {
-        inp.val(aValue);
+        $(inp).val(aValue);
         inp.disabled = false;
     } else
         makeHiddenInput(theForm,aName,aValue);
 }
 
 function disableNamedVariable(theForm,aName)
 {   // Store a value to a named input.  Will make the input if necessary
     var inp = normed($(theForm).find("input[name='"+aName+"']:last"));
     if (inp)
         inp.disabled = true;
 }
 
 function parseUrlAndUpdateVars(theForm,href)  // DEAD CODE?
 {   // Parses the URL and converts GET vals to POST vals
     var url = href;