Created
September 6, 2009 08:21
-
-
Save othree/181715 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
var form = document.getElementById('add-murmur'); | |
form.onsubmit = function (evt) { | |
var target = form.getElementsByTagName('input')[0]; | |
var text = target.value; | |
target.value = text.replace(/\s*:w$/, ""); | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment