Mercurial > zeropaste
changeset 347:3ce44f960d3a
coffee: autosize_box_fix.
author | edogawaconan <me@myconan.net> |
---|---|
date | Thu, 03 Jul 2014 14:53:46 +0900 |
parents | d08135e07f6c |
children | 55287d8a5a04 |
files | app/assets/javascripts/autosize-box-fix.js app/assets/javascripts/autosize_box_fix.js.coffee app/assets/javascripts/zp.new.js |
diffstat | 3 files changed, 5 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/app/assets/javascripts/autosize-box-fix.js Thu Jul 03 14:51:15 2014 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -(function($) { - $.autosize_box_fix = function(elem) { - elem.css('box-sizing', ''); - elem.css('-webkit-box-sizing', ''); - elem.css('-moz-box-sizing', ''); - }; -}) (jQuery);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/assets/javascripts/autosize_box_fix.js.coffee Thu Jul 03 14:53:46 2014 +0900 @@ -0,0 +1,4 @@ +$.autosize_box_fix = (elem) -> + elem.css 'box-sizing', '' + elem.css '-webkit-box-sizing', '' + elem.css '-moz-box-sizing', ''
--- a/app/assets/javascripts/zp.new.js Thu Jul 03 14:51:15 2014 +0900 +++ b/app/assets/javascripts/zp.new.js Thu Jul 03 14:53:46 2014 +0900 @@ -1,5 +1,5 @@ //= require jquery.autosize -//= require autosize-box-fix +//= require autosize_box_fix (function($) { window.zp.new = { input: function() { return $("#paste_paste") },