Skip to content

Commit

Permalink
Use removeAttribute instead of writeAttribute with null value.
Browse files Browse the repository at this point in the history
  • Loading branch information
kangax committed Apr 12, 2010
1 parent 3776c56 commit f94f68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rails.js
Expand Up @@ -110,7 +110,7 @@ document.observe("dom:loaded", function() {
var inputs = element.select("input[type=submit][disabled=true][data-disable-with]");
inputs.each(function(input) {
input.value = input.readAttribute('data-original-value');
input.writeAttribute('data-original-value', null);
input.removeAttribute('data-original-value');
input.disabled = false;
});
}
Expand Down

0 comments on commit f94f68f

Please sign in to comment.