Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
ee379726
Commit
ee379726
authored
Nov 29, 2013
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d82b19d5
88f06594
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
weblate/media/js/jquery.autogrow-textarea.js
weblate/media/js/jquery.autogrow-textarea.js
+4
-5
No files found.
weblate/media/js/jquery.autogrow-textarea.js
View file @
ee379726
...
...
@@ -3,13 +3,12 @@
/*
* Auto-growing textareas; technique ripped from Facebook
*/
$
.
fn
.
autogrow
=
function
(
options
)
{
$
.
fn
.
autogrow
=
function
()
{
this
.
filter
(
'
textarea
'
).
each
(
function
()
{
var
$this
=
$
(
this
),
minHeight
=
$this
.
height
(),
lineHeight
=
$this
.
css
(
'
lineHeight
'
);
minHeight
=
$this
.
height
();
var
shadow
=
$
(
'
<div></div>
'
).
css
({
position
:
'
absolute
'
,
...
...
@@ -31,7 +30,7 @@
shadow
.
html
(
val
);
$this
.
css
(
'
height
'
,
Math
.
max
(
shadow
.
height
()
+
20
,
minHeight
));
}
}
;
$this
.
change
(
update
).
keyup
(
update
).
keydown
(
update
);
...
...
@@ -41,6 +40,6 @@
return
this
;
}
}
;
})(
jQuery
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment