diff --git a/js/util.js b/js/util.js index 9f66e393ca..a699f4e90c 100644 --- a/js/util.js +++ b/js/util.js @@ -70,10 +70,10 @@ $(document).ready(function(){ }}; function addAjaxHidden(form) { - ajax = document.newElement('input'); - ajax.addAttribute('type', 'hidden'); - ajax.addAttribute('name', 'ajax'); - ajax.addAttribute('value', 1); + ajax = document.createElement('input'); + ajax.setAttribute('type', 'hidden'); + ajax.setAttribute('name', 'ajax'); + ajax.setAttribute('value', 1); form.appendChild(ajax); }