Fix search term input field jumping around on Firefox.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 3 Apr 2011 11:36:06 +0000 (13:36 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 3 Apr 2011 11:36:06 +0000 (13:36 +0200)
src/main/resources/static/javascript/sone.js

index c0fbb6d..aeebfb1 100644 (file)
@@ -37,7 +37,8 @@ function registerInputTextareaSwap(inputElement, defaultText, inputFieldName, op
                (function(inputField, textarea) {
                        inputField.focus(function() {
                                $(this).hide().attr("disabled", "disabled");
-                               textarea.show().focus();
+                               /* no, show(), “display: block” is not what I need. */
+                               textarea.attr("style", "display: inline").focus();
                        });
                        if (inputField.val() == "") {
                                inputField.addClass("default");