Add frontend assets and plugin bundles
Add the legacy frontend themes, scripts, and plugin assets required by the main SPOTA interfaces.
This commit is contained in:
28
assets/plugins/autosize/autosize.jquery.json
Normal file
28
assets/plugins/autosize/autosize.jquery.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "autosize",
|
||||
"title": "Autosize",
|
||||
"description": "Automatically adjust textarea height based on user input.",
|
||||
"version": "1.17.8",
|
||||
"dependencies": {
|
||||
"jquery": ">=1.7"
|
||||
},
|
||||
"keywords": [
|
||||
"form",
|
||||
"textarea",
|
||||
"ui",
|
||||
"jQuery"
|
||||
],
|
||||
"author": {
|
||||
"name": "Jack Moore",
|
||||
"url": "http://www.jacklmoore.com",
|
||||
"email": "hello@jacklmoore.com"
|
||||
},
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "http://www.opensource.org/licenses/mit-license.php"
|
||||
}
|
||||
],
|
||||
"homepage": "http://www.jacklmoore.com/autosize",
|
||||
"demo": "http://www.jacklmoore.com/autosize"
|
||||
}
|
||||
29
assets/plugins/autosize/bower.json
Normal file
29
assets/plugins/autosize/bower.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "jquery-autosize",
|
||||
"description": "Automatically adjust textarea height based on user input.",
|
||||
"version": "1.17.8",
|
||||
"dependencies": {
|
||||
"jquery": ">=1.7"
|
||||
},
|
||||
"keywords": [
|
||||
"form",
|
||||
"textarea",
|
||||
"ui",
|
||||
"jQuery"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Jack Moore",
|
||||
"url": "http://www.jacklmoore.com",
|
||||
"email": "hello@jacklmoore.com"
|
||||
}
|
||||
],
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "http://www.opensource.org/licenses/mit-license.php"
|
||||
}
|
||||
],
|
||||
"homepage": "http://www.jacklmoore.com/autosize",
|
||||
"main": "jquery.autosize.js"
|
||||
}
|
||||
36
assets/plugins/autosize/demo.html
Normal file
36
assets/plugins/autosize/demo.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'/>
|
||||
<title>Textarea Autosize Demo</title>
|
||||
<style>
|
||||
|
||||
textarea {
|
||||
border:2px solid #ccc;
|
||||
padding: 10px;
|
||||
vertical-align: top;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.animated {
|
||||
-webkit-transition: height 0.2s;
|
||||
-moz-transition: height 0.2s;
|
||||
transition: height 0.2s;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'></script>
|
||||
<script src='jquery.autosize.js'></script>
|
||||
<script>
|
||||
$(function(){
|
||||
$('.normal').autosize();
|
||||
$('.animated').autosize({append: "\n"});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<textarea class='normal'>Not animated.</textarea>
|
||||
<textarea class='normal'>The coconut palm (also, cocoanut), Cocos nucifera, is a member of the family Arecaceae (palm family). It is the only accepted species in the genus Cocos.[2] The term coconut can refer to the entire coconut palm, the seed, or the fruit, which, botanically, is a drupe, not a nut. The spelling cocoanut is an archaic form of the word.[3] The term is derived from 16th-century Portuguese and Spanish coco, meaning "head" or "skull",[4] from the three small holes on the coconut shell that resemble human facial features.</textarea>
|
||||
<textarea class='animated'>With CSS transition.</textarea>
|
||||
</body>
|
||||
</html>
|
||||
258
assets/plugins/autosize/jquery.autosize.js
Normal file
258
assets/plugins/autosize/jquery.autosize.js
Normal file
@@ -0,0 +1,258 @@
|
||||
/*!
|
||||
Autosize v1.17.8 - 2013-09-07
|
||||
Automatically adjust textarea height based on user input.
|
||||
(c) 2013 Jack Moore - http://www.jacklmoore.com/autosize
|
||||
license: http://www.opensource.org/licenses/mit-license.php
|
||||
*/
|
||||
(function (factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['jquery'], factory);
|
||||
} else {
|
||||
// Browser globals: jQuery or jQuery-like library, such as Zepto
|
||||
factory(window.jQuery || window.$);
|
||||
}
|
||||
}(function ($) {
|
||||
var
|
||||
defaults = {
|
||||
className: 'autosizejs',
|
||||
append: '',
|
||||
callback: false,
|
||||
resizeDelay: 10
|
||||
},
|
||||
|
||||
// border:0 is unnecessary, but avoids a bug in FireFox on OSX
|
||||
copy = '<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>',
|
||||
|
||||
// line-height is conditionally included because IE7/IE8/old Opera do not return the correct value.
|
||||
typographyStyles = [
|
||||
'fontFamily',
|
||||
'fontSize',
|
||||
'fontWeight',
|
||||
'fontStyle',
|
||||
'letterSpacing',
|
||||
'textTransform',
|
||||
'wordSpacing',
|
||||
'textIndent'
|
||||
],
|
||||
|
||||
// to keep track which textarea is being mirrored when adjust() is called.
|
||||
mirrored,
|
||||
|
||||
// the mirror element, which is used to calculate what size the mirrored element should be.
|
||||
mirror = $(copy).data('autosize', true)[0];
|
||||
|
||||
// test that line-height can be accurately copied.
|
||||
mirror.style.lineHeight = '99px';
|
||||
if ($(mirror).css('lineHeight') === '99px') {
|
||||
typographyStyles.push('lineHeight');
|
||||
}
|
||||
mirror.style.lineHeight = '';
|
||||
|
||||
$.fn.autosize = function (options) {
|
||||
if (!this.length) {
|
||||
return this;
|
||||
}
|
||||
|
||||
options = $.extend({}, defaults, options || {});
|
||||
|
||||
if (mirror.parentNode !== document.body) {
|
||||
$(document.body).append(mirror);
|
||||
}
|
||||
|
||||
return this.each(function () {
|
||||
var
|
||||
ta = this,
|
||||
$ta = $(ta),
|
||||
maxHeight,
|
||||
minHeight,
|
||||
boxOffset = 0,
|
||||
callback = $.isFunction(options.callback),
|
||||
originalStyles = {
|
||||
height: ta.style.height,
|
||||
overflow: ta.style.overflow,
|
||||
overflowY: ta.style.overflowY,
|
||||
wordWrap: ta.style.wordWrap,
|
||||
resize: ta.style.resize
|
||||
},
|
||||
timeout,
|
||||
width = $ta.width();
|
||||
|
||||
if ($ta.data('autosize')) {
|
||||
// exit if autosize has already been applied, or if the textarea is the mirror element.
|
||||
return;
|
||||
}
|
||||
$ta.data('autosize', true);
|
||||
|
||||
if ($ta.css('box-sizing') === 'border-box' || $ta.css('-moz-box-sizing') === 'border-box' || $ta.css('-webkit-box-sizing') === 'border-box'){
|
||||
boxOffset = $ta.outerHeight() - $ta.height();
|
||||
}
|
||||
|
||||
// IE8 and lower return 'auto', which parses to NaN, if no min-height is set.
|
||||
minHeight = Math.max(parseInt($ta.css('minHeight'), 10) - boxOffset || 0, $ta.height());
|
||||
|
||||
$ta.css({
|
||||
overflow: 'hidden',
|
||||
overflowY: 'hidden',
|
||||
wordWrap: 'break-word', // horizontal overflow is hidden, so break-word is necessary for handling words longer than the textarea width
|
||||
resize: ($ta.css('resize') === 'none' || $ta.css('resize') === 'vertical') ? 'none' : 'horizontal'
|
||||
});
|
||||
|
||||
// The mirror width must exactly match the textarea width, so using getBoundingClientRect because it doesn't round the sub-pixel value.
|
||||
function setWidth() {
|
||||
var style, width;
|
||||
|
||||
if ('getComputedStyle' in window) {
|
||||
style = window.getComputedStyle(ta);
|
||||
width = ta.getBoundingClientRect().width;
|
||||
|
||||
$.each(['paddingLeft', 'paddingRight', 'borderLeftWidth', 'borderRightWidth'], function(i,val){
|
||||
width -= parseInt(style[val],10);
|
||||
});
|
||||
|
||||
mirror.style.width = width + 'px';
|
||||
}
|
||||
else {
|
||||
// window.getComputedStyle, getBoundingClientRect returning a width are unsupported and unneeded in IE8 and lower.
|
||||
mirror.style.width = Math.max($ta.width(), 0) + 'px';
|
||||
}
|
||||
}
|
||||
|
||||
function initMirror() {
|
||||
var styles = {};
|
||||
|
||||
mirrored = ta;
|
||||
mirror.className = options.className;
|
||||
maxHeight = parseInt($ta.css('maxHeight'), 10);
|
||||
|
||||
// mirror is a duplicate textarea located off-screen that
|
||||
// is automatically updated to contain the same text as the
|
||||
// original textarea. mirror always has a height of 0.
|
||||
// This gives a cross-browser supported way getting the actual
|
||||
// height of the text, through the scrollTop property.
|
||||
$.each(typographyStyles, function(i,val){
|
||||
styles[val] = $ta.css(val);
|
||||
});
|
||||
$(mirror).css(styles);
|
||||
|
||||
setWidth();
|
||||
|
||||
// Chrome-specific fix:
|
||||
// When the textarea y-overflow is hidden, Chrome doesn't reflow the text to account for the space
|
||||
// made available by removing the scrollbar. This workaround triggers the reflow for Chrome.
|
||||
if (window.chrome) {
|
||||
var width = ta.style.width;
|
||||
ta.style.width = '0px';
|
||||
var ignore = ta.offsetWidth;
|
||||
ta.style.width = width;
|
||||
}
|
||||
}
|
||||
|
||||
// Using mainly bare JS in this function because it is going
|
||||
// to fire very often while typing, and needs to very efficient.
|
||||
function adjust() {
|
||||
var height, original;
|
||||
|
||||
if (mirrored !== ta) {
|
||||
initMirror();
|
||||
} else {
|
||||
setWidth();
|
||||
}
|
||||
|
||||
mirror.value = ta.value + options.append;
|
||||
mirror.style.overflowY = ta.style.overflowY;
|
||||
original = parseInt(ta.style.height,10);
|
||||
|
||||
// Setting scrollTop to zero is needed in IE8 and lower for the next step to be accurately applied
|
||||
mirror.scrollTop = 0;
|
||||
|
||||
mirror.scrollTop = 9e4;
|
||||
|
||||
// Using scrollTop rather than scrollHeight because scrollHeight is non-standard and includes padding.
|
||||
height = mirror.scrollTop;
|
||||
|
||||
if (maxHeight && height > maxHeight) {
|
||||
ta.style.overflowY = 'scroll';
|
||||
height = maxHeight;
|
||||
} else {
|
||||
ta.style.overflowY = 'hidden';
|
||||
if (height < minHeight) {
|
||||
height = minHeight;
|
||||
}
|
||||
}
|
||||
|
||||
height += boxOffset;
|
||||
|
||||
if (original !== height) {
|
||||
ta.style.height = height + 'px';
|
||||
if (callback) {
|
||||
options.callback.call(ta,ta);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function resize () {
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(function(){
|
||||
var newWidth = $ta.width();
|
||||
|
||||
if (newWidth !== width) {
|
||||
width = newWidth;
|
||||
adjust();
|
||||
}
|
||||
}, parseInt(options.resizeDelay,10));
|
||||
}
|
||||
|
||||
if ('onpropertychange' in ta) {
|
||||
if ('oninput' in ta) {
|
||||
// Detects IE9. IE9 does not fire onpropertychange or oninput for deletions,
|
||||
// so binding to onkeyup to catch most of those occasions. There is no way that I
|
||||
// know of to detect something like 'cut' in IE9.
|
||||
$ta.on('input.autosize keyup.autosize', adjust);
|
||||
} else {
|
||||
// IE7 / IE8
|
||||
$ta.on('propertychange.autosize', function(){
|
||||
if(event.propertyName === 'value'){
|
||||
adjust();
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
// Modern Browsers
|
||||
$ta.on('input.autosize', adjust);
|
||||
}
|
||||
|
||||
// Set options.resizeDelay to false if using fixed-width textarea elements.
|
||||
// Uses a timeout and width check to reduce the amount of times adjust needs to be called after window resize.
|
||||
|
||||
if (options.resizeDelay !== false) {
|
||||
$(window).on('resize.autosize', resize);
|
||||
}
|
||||
|
||||
// Event for manual triggering if needed.
|
||||
// Should only be needed when the value of the textarea is changed through JavaScript rather than user input.
|
||||
$ta.on('autosize.resize', adjust);
|
||||
|
||||
// Event for manual triggering that also forces the styles to update as well.
|
||||
// Should only be needed if one of typography styles of the textarea change, and the textarea is already the target of the adjust method.
|
||||
$ta.on('autosize.resizeIncludeStyle', function() {
|
||||
mirrored = null;
|
||||
adjust();
|
||||
});
|
||||
|
||||
$ta.on('autosize.destroy', function(){
|
||||
mirrored = null;
|
||||
clearTimeout(timeout);
|
||||
$(window).off('resize', resize);
|
||||
$ta
|
||||
.off('autosize')
|
||||
.off('.autosize')
|
||||
.css(originalStyles)
|
||||
.removeData('autosize');
|
||||
});
|
||||
|
||||
// Call adjust in case the textarea already contains text.
|
||||
adjust();
|
||||
});
|
||||
};
|
||||
}));
|
||||
7
assets/plugins/autosize/jquery.autosize.min.js
vendored
Normal file
7
assets/plugins/autosize/jquery.autosize.min.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/*!
|
||||
Autosize v1.17.8 - 2013-09-07
|
||||
Automatically adjust textarea height based on user input.
|
||||
(c) 2013 Jack Moore - http://www.jacklmoore.com/autosize
|
||||
license: http://www.opensource.org/licenses/mit-license.php
|
||||
*/
|
||||
(function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(window.jQuery||window.$)})(function(e){var t,o={className:"autosizejs",append:"",callback:!1,resizeDelay:10},i='<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>',n=["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],s=e(i).data("autosize",!0)[0];s.style.lineHeight="99px","99px"===e(s).css("lineHeight")&&n.push("lineHeight"),s.style.lineHeight="",e.fn.autosize=function(i){return this.length?(i=e.extend({},o,i||{}),s.parentNode!==document.body&&e(document.body).append(s),this.each(function(){function o(){var t,o;"getComputedStyle"in window?(t=window.getComputedStyle(u),o=u.getBoundingClientRect().width,e.each(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],function(e,i){o-=parseInt(t[i],10)}),s.style.width=o+"px"):s.style.width=Math.max(p.width(),0)+"px"}function a(){var a={};if(t=u,s.className=i.className,d=parseInt(p.css("maxHeight"),10),e.each(n,function(e,t){a[t]=p.css(t)}),e(s).css(a),o(),window.chrome){var r=u.style.width;u.style.width="0px",u.offsetWidth,u.style.width=r}}function r(){var e,n;t!==u?a():o(),s.value=u.value+i.append,s.style.overflowY=u.style.overflowY,n=parseInt(u.style.height,10),s.scrollTop=0,s.scrollTop=9e4,e=s.scrollTop,d&&e>d?(u.style.overflowY="scroll",e=d):(u.style.overflowY="hidden",c>e&&(e=c)),e+=f,n!==e&&(u.style.height=e+"px",w&&i.callback.call(u,u))}function l(){clearTimeout(h),h=setTimeout(function(){var e=p.width();e!==g&&(g=e,r())},parseInt(i.resizeDelay,10))}var d,c,h,u=this,p=e(u),f=0,w=e.isFunction(i.callback),z={height:u.style.height,overflow:u.style.overflow,overflowY:u.style.overflowY,wordWrap:u.style.wordWrap,resize:u.style.resize},g=p.width();p.data("autosize")||(p.data("autosize",!0),("border-box"===p.css("box-sizing")||"border-box"===p.css("-moz-box-sizing")||"border-box"===p.css("-webkit-box-sizing"))&&(f=p.outerHeight()-p.height()),c=Math.max(parseInt(p.css("minHeight"),10)-f||0,p.height()),p.css({overflow:"hidden",overflowY:"hidden",wordWrap:"break-word",resize:"none"===p.css("resize")||"vertical"===p.css("resize")?"none":"horizontal"}),"onpropertychange"in u?"oninput"in u?p.on("input.autosize keyup.autosize",r):p.on("propertychange.autosize",function(){"value"===event.propertyName&&r()}):p.on("input.autosize",r),i.resizeDelay!==!1&&e(window).on("resize.autosize",l),p.on("autosize.resize",r),p.on("autosize.resizeIncludeStyle",function(){t=null,r()}),p.on("autosize.destroy",function(){t=null,clearTimeout(h),e(window).off("resize",l),p.off("autosize").off(".autosize").css(z).removeData("autosize")}),r())})):this}});
|
||||
27
assets/plugins/autosize/package.json
Normal file
27
assets/plugins/autosize/package.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "jquery-autosize",
|
||||
"description": "Automatically adjust textarea height based on user input.",
|
||||
"version": "1.17.8",
|
||||
"dependencies": {},
|
||||
"keywords": [
|
||||
"form",
|
||||
"textarea",
|
||||
"ui",
|
||||
"jQuery"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Jack Moore",
|
||||
"url": "http://www.jacklmoore.com",
|
||||
"email": "hello@jacklmoore.com"
|
||||
}
|
||||
],
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "http://www.opensource.org/licenses/mit-license.php"
|
||||
}
|
||||
],
|
||||
"homepage": "http://www.jacklmoore.com/autosize",
|
||||
"main": "jquery.autosize.js"
|
||||
}
|
||||
158
assets/plugins/autosize/readme.md
Normal file
158
assets/plugins/autosize/readme.md
Normal file
@@ -0,0 +1,158 @@
|
||||
## Autosize
|
||||
|
||||
Small jQuery plugin to allow dynamic resizing of textarea height, so that it grows as based on visitor input. To use, just call the `.autosize()` method on any textarea element. Example `$('textarea').autosize();`. See the [project page](http://jacklmoore.com/autosize/) for documentation, caveats, and a demonstration. Released under the [MIT license](http://www.opensource.org/licenses/mit-license.php).
|
||||
|
||||
## Changelog
|
||||
|
||||
### v1.17.8 - 2013/9/7
|
||||
* Minor change to not append the mirror element when the plugin is applied to an empty jQuery collection
|
||||
|
||||
### v1.17.7 - 2013/9/3
|
||||
* Reverted to an earlier fix for a Chrome issue. Too many issues with using setSelectionRange.
|
||||
|
||||
### v1.17.6 - 2013/8/24
|
||||
* Fixed a potential issue introduced in 1.17.4 that causes an 'NS_ERROR_FAILURE' error in Firefox.
|
||||
|
||||
### v1.17.5 - 2013/8/23
|
||||
* Fixed oversight in 1.17.4 that caused FireFox fix not to be applied.
|
||||
|
||||
### v1.17.4 - 2013/8/22
|
||||
* Improved speed of editing large blocks of text in FireFox.
|
||||
|
||||
### v1.17.3 - 2013/8/2013
|
||||
* Resolved an issue that was causing slowing down initialization for large blocks of text in Chrome.
|
||||
* Renamed minified file from jquery.autosize-min.js to jquery.autosize.min.js
|
||||
|
||||
### v1.17.2 - 2013/7/28
|
||||
* Added support for loading as an AMD module.
|
||||
* Added package.json for installing through NPM.
|
||||
|
||||
### v1.17.1 - 2013/6/22
|
||||
* Fixed potential memory leak when using autosize.destroy.
|
||||
|
||||
### v1.17.0 - 2013/6/19
|
||||
* Renamed 'autosize' event to 'autosize.resize'
|
||||
* Renamed 'autosize.includeStyle' event to 'autosize.resizeIncludeStyle'
|
||||
* Fixes problem introduced in 1.16.18 with manually triggering the 'autosize' event:
|
||||
|
||||
### v1.16.20 - 2013/6/18
|
||||
* Minor improvement to the destroy event.
|
||||
|
||||
### v1.16.19 - 2013/6/18
|
||||
* Added event for removing autosize from a textarea element:
|
||||
$('textarea.example').trigger('autosize.destroy');
|
||||
|
||||
### v1.16.18 - 2013/6/18
|
||||
* Added event for manually triggering resize that also accounts for typographic styles that have changed on the textarea element. Example:
|
||||
$('textarea.example').css('text-indent', 25);
|
||||
$('textarea.example').trigger('autosize.includeStyle');
|
||||
* Minor optimization
|
||||
|
||||
### v1.16.17 - 2013/6/12
|
||||
* Fixed a compatibility issue with jQuery versions before 1.9 introduced in the previous update.
|
||||
|
||||
### v1.16.16 - 2013/6/11
|
||||
* Fixed an issue where the calculated height might be slightly off in modern browsers when the width of the textarea has a sub-pixel value.
|
||||
|
||||
### v1.16.15 - 2013/6/7
|
||||
* Reduced how frequently autosize is triggered when resizing the window. Added resizeDelay property so that the frequency can be adjusted or disabled.
|
||||
|
||||
### v1.16.14 - 2013/6/6
|
||||
* Fixed an issue with autosize working poorly if the mirror element has a transition applied to it's width.
|
||||
|
||||
### v1.16.13 - 2013/6/4
|
||||
* Fixed a Chrome cursor position issue introduced with the reflow workaround added in 1.16.10.
|
||||
|
||||
### v1.16.12 - 2013/5/31
|
||||
* Much better efficiency and smoothness for IE8 and lower.
|
||||
|
||||
### v1.16.11 - 2013/5/31
|
||||
* Fixed a default height issue in IE8 and lower.
|
||||
|
||||
### v1.16.10 - 2013/5/30
|
||||
* Dropped scrollHeight for scrollTop. This fixed a height problem relating to padding. (Fixes #70)
|
||||
* Re-added workaround to get Chrome to reflow text after hiding overflow.
|
||||
|
||||
### v1.16.9 - 2013/5/20
|
||||
* Reverted change from 1.16.8 as it caused an issue in IE8. (Fixes #69)
|
||||
|
||||
### v1.16.8 - 2013/5/7
|
||||
* Fixed issue where autosize was creating a horizontal scrollbar for a user
|
||||
|
||||
### v1.16.7 - 2013/3/20
|
||||
* Added workaround for a very edge-case iOS bug (Fixes #58).
|
||||
|
||||
### v1.16.6 - 2013/3/12
|
||||
* Replaced jQuery shorthand methods with on() in anticipation of jQuery 2.0 conditional builds
|
||||
|
||||
### v1.16.5 - 2013/3/12
|
||||
* Fixed a bug where triggering the autosize event immediately after assigning autosize had no effect.
|
||||
|
||||
### v1.16.4 - 2013/1/29
|
||||
* Fixed a conflict with direction:ltr pages.
|
||||
|
||||
### v1.16.3 - 2013/1/23
|
||||
* Added minified file back to repository
|
||||
|
||||
### v1.16.2 - 2013/1/20
|
||||
* Minor box-sizing issue dealing with min-heights.
|
||||
|
||||
### v1.16.1 - 2013/1/20
|
||||
* Added to plugins.jquery.com
|
||||
|
||||
### v1.15 - 2012/11/16
|
||||
* Reworked to only create a single mirror element, instead of one for each textarea.
|
||||
* Dropped feature detection for FF3 and Safari 4.
|
||||
|
||||
### v1.14 - 2012/10/6
|
||||
* Added 'append' option for appending whitespace to the end of the height calculation (an extra newline improves the apperance when animating).
|
||||
* Added a demonstration of animating the height change using a CSS transition.
|
||||
|
||||
### v1.13 - 2012/9/21
|
||||
* Added optional callback that fires after resize.
|
||||
|
||||
### v1.12 - 2012/9/3
|
||||
* Fixed a bug I introduced in the last update.
|
||||
|
||||
### v1.11 - 2012/8/8
|
||||
* Added workaround to get Chrome to reflow default text better.
|
||||
|
||||
### v1.10 - 2012/4/30
|
||||
* Added 'lineHeight' to the list of styles considered for size detection.
|
||||
|
||||
### v1.9 - 2012/6/19
|
||||
* Added 'textIndent' to the list of styles considered for size detection.
|
||||
* Added vender prefixes to box-sizing detection
|
||||
|
||||
### v1.8 - 2012/6/7
|
||||
* Added conditional so that autosize cannot be applied twice to the same element
|
||||
* When autosize is applied to an element, it will have a data property that links it to the mirrored textarea element. This will make it easier to keep track of and remove unneeded mirror elements. Example:
|
||||
|
||||
$('textarea.example').data('mirror').remove(); // delete the mirror
|
||||
|
||||
$('textarea.example').remove(); // delete the original
|
||||
|
||||
### v1.7 - 2012/5/3
|
||||
* Now supports box-sizing:border-box
|
||||
|
||||
### v1.6 - 2012/2/11
|
||||
* added binding to allow autosize to be triggered manually. Example:
|
||||
$('#myTextArea').trigger('autosize');
|
||||
|
||||
### v1.5 - 2011/12/7
|
||||
* fixed a regression in detecting FireFox support
|
||||
|
||||
### v1.4 - 2011/11/22
|
||||
* added branching to exclude old browsers (FF3- & Safari4-)
|
||||
|
||||
### v1.3 - 2011/11/13
|
||||
* fixed a regression in 1.1 relating to Opera.
|
||||
|
||||
### v1.2 - 2011/11/10
|
||||
* fixed a regression in 1.1 that broke autosize for IE9.
|
||||
|
||||
### v1.1 - 2011/11/10
|
||||
* autosize now follows the max-height of textareas. OverflowY will be set to scroll once the content height exceeds max-height.
|
||||
|
||||
### v1.0 - 2011/11/7
|
||||
* first release
|
||||
Reference in New Issue
Block a user