summaryrefslogtreecommitdiffstats
path: root/data/js/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/js/script.js')
-rw-r--r--data/js/script.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/js/script.js b/data/js/script.js
index 3f145d1be..a7cf3aa54 100644
--- a/data/js/script.js
+++ b/data/js/script.js
@@ -32,6 +32,12 @@ function fixedEncodeURIComponent (str) {
}
});
+ $(document).on("keyup", "#language", function(event) {
+ if (event.keyCode == 13) {
+ window.location = window.paste_base + '/' + fixedEncodeURIComponent($(this).val());
+ }
+ });
+
$('#language-toggle').click(function() {
setTimeout(function() {
$('#language').focus();