Skip to content

Commit

Permalink
Fixed the role switch log in button not being disabled but the main l…
Browse files Browse the repository at this point in the history
…og in one is still broken
  • Loading branch information
tobioboye committed Mar 6, 2012
1 parent afa7275 commit 800de09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/javascripts/rails.js
Expand Up @@ -164,7 +164,7 @@
}
});

document.on("ajax:after", "form", function(event, element) {
document.on("ajax:complete", "form", function(event, element) {
var inputs = element.select("input[type=submit][disabled=true][data-disable-with]");
inputs.each(function(input) {
input.value = input.readAttribute('data-original-value');
Expand Down

0 comments on commit 800de09

Please sign in to comment.