summaryrefslogtreecommitdiffstats
path: root/data/js
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-02-28 11:05:35 +0100
committerFlorian Pritz <bluewind@xinu.at>2013-02-28 11:12:53 +0100
commit10daac79846bbae460b0cc539f14e155f60a4aae (patch)
treec289b8ce7c981f7e4234a706366ef0b61b0fda22 /data/js
parentebfed171c57f4e9848b730c1d9bab6418f463514 (diff)
upload_form: Resize textarea using responsive css rather than js
This no longer resizes the textarea after the user change the size themself. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'data/js')
-rw-r--r--data/js/script.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/data/js/script.js b/data/js/script.js
index 7d84eb9a1..ce20e922d 100644
--- a/data/js/script.js
+++ b/data/js/script.js
@@ -89,21 +89,6 @@ function fixedEncodeURIComponent (str) {
$('.file-upload').bind('change', checkFileUpload);
}
- $('.text-upload').css('height', '100px');
- $('.text-upload').bind('blur', function() {
- $('.text-upload').animate({height: "100px"}, 300);
- });
- $('.text-upload').bind('focus', function() {
- $('.text-upload').animate({height: "300px"}, 300);
- });
-
- // work around to submit the form if the click causes the
- // textarea to shrink and you can't relase the mouse fast enough
- // so mouseup will be outside the button area and not trigger
- // submission properly
- $('.text-upload-form :submit').bind('mousedown', function() {
- $(this).click();
- });
});
})(jQuery);