Created
May 24, 2012 17:37
-
-
Save westmark/2782971 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Ajax.Request(link.href, { | |
method:'POST', | |
onSuccess:function (transport) { | |
if (row !== null) { | |
row.highlight({duration:0.5}); | |
} | |
window.location.reload(); | |
}, | |
onFailure:function (transport) { | |
alert("Ett fel intr\u00e4ffade. (HTTP-svarskod " + transport.status + ")"); | |
window.location.reload(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment