mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-20 11:18:03 +00:00
Fixes for autosizing textareas
This commit is contained in:
parent
b42f459cee
commit
a06570aebf
@ -317,7 +317,10 @@ $(function() {
|
|||||||
}
|
}
|
||||||
updateKeyVal(key);
|
updateKeyVal(key);
|
||||||
|
|
||||||
$('textarea.share-text').val("Let's chat on darkwire.io at https://darkwire.io" + roomId + " using the key " + encryptionKey);
|
$('.modal').on('shown.bs.modal', function (e) {
|
||||||
|
autosize.update($('textarea.share-text'));
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Whenever the server emits 'new message', update the chat body
|
// Whenever the server emits 'new message', update the chat body
|
||||||
@ -466,6 +469,8 @@ $(function() {
|
|||||||
$('.key').val(val);
|
$('.key').val(val);
|
||||||
$('.key').text(val);
|
$('.key').text(val);
|
||||||
encryptionKey = val;
|
encryptionKey = val;
|
||||||
|
$('textarea.share-text').val("Let's chat on darkwire.io at https://darkwire.io" + roomId + " using the key " + encryptionKey);
|
||||||
|
autosize.update($('textarea.share-text'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prevent closing join-modal
|
// Prevent closing join-modal
|
||||||
@ -538,7 +543,7 @@ $(function() {
|
|||||||
$('.navbar-toggle:visible').click();
|
$('.navbar-toggle:visible').click();
|
||||||
});
|
});
|
||||||
|
|
||||||
autosize($('textarea'));
|
autosize($('textarea.share-text'));
|
||||||
|
|
||||||
$('textarea.share-text').click(function() {
|
$('textarea.share-text').click(function() {
|
||||||
$(this).focus();
|
$(this).focus();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user