aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/diabook-green/js/jquery.autogrow.textarea.js
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-04-23 18:25:14 -0400
committerSimon L'nu <simon.lnu@gmail.com>2012-04-23 18:25:14 -0400
commit6e9485605f64394f8e6d830b8a959a5afc85cf2d (patch)
tree7f94f8d1e2336bbb7e69a327a003b6880f0610c0 /view/theme/diabook/diabook-green/js/jquery.autogrow.textarea.js
parent29d7f260d7e6dc178862c6a6c16445ef9b3512e4 (diff)
parentaf7abcea2715824cbd6460a7323c8bb64bd5b829 (diff)
downloadvolse-hubzilla-6e9485605f64394f8e6d830b8a959a5afc85cf2d.tar.gz
volse-hubzilla-6e9485605f64394f8e6d830b8a959a5afc85cf2d.tar.bz2
volse-hubzilla-6e9485605f64394f8e6d830b8a959a5afc85cf2d.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: DE strings, correction of a typo diabok-themes: fixed bug in green-wide and dark-wide diabook-themes: small fix in nets_aside, group_aside and delete obsolete .tpls in subfolders diabook-themes: bugfix in admin-section allow bbcode representation of html symbols such as &copy; by wrapping in bb brackets protect jappixmini/proxy from typo check, more work on email2 connector * master:
Diffstat (limited to 'view/theme/diabook/diabook-green/js/jquery.autogrow.textarea.js')
-rw-r--r--view/theme/diabook/diabook-green/js/jquery.autogrow.textarea.js46
1 files changed, 0 insertions, 46 deletions
diff --git a/view/theme/diabook/diabook-green/js/jquery.autogrow.textarea.js b/view/theme/diabook/diabook-green/js/jquery.autogrow.textarea.js
deleted file mode 100644
index 806e34f51..000000000
--- a/view/theme/diabook/diabook-green/js/jquery.autogrow.textarea.js
+++ /dev/null
@@ -1,46 +0,0 @@
-(function($) {
-
- /*
- * Auto-growing textareas; technique ripped from Facebook
- */
- $.fn.autogrow = function(options) {
-
- this.filter('textarea').each(function() {
-
- var $this = $(this),
- minHeight = $this.height(),
- lineHeight = $this.css('lineHeight');
-
- var shadow = $('<div></div>').css({
- position: 'absolute',
- top: -10000,
- left: -10000,
- width: $(this).width(),
- fontSize: $this.css('fontSize'),
- fontFamily: $this.css('fontFamily'),
- lineHeight: $this.css('lineHeight'),
- resize: 'none'
- }).appendTo(document.body);
-
- var update = function() {
-
- var val = this.value.replace(/</g, '&lt;')
- .replace(/>/g, '&gt;')
- .replace(/&/g, '&amp;')
- .replace(/\n/g, '<br/>');
-
- shadow.html(val);
- $(this).css('height', Math.max(shadow.height() + 20, minHeight));
- }
-
- $(this).change(update).keyup(update).keydown(update);
-
- update.apply(this);
-
- });
-
- return this;
-
- }
-
-})(jQuery); \ No newline at end of file