Browse Source

[IMP] web_translate_dialog_page: animate autosize of textareas

(/home/gbaconnier/code/openerp/c2c-web-addons/lp6.1-main rev 12)
pull/4/head
Guewen Baconnier @ Camptocamp 12 years ago
parent
commit
557baeea4b
  1. 2
      web_translate_dialog_page/static/src/js/web_translate_dialog_page.js

2
web_translate_dialog_page/static/src/js/web_translate_dialog_page.js

@ -62,7 +62,7 @@ openerp.web_translate_dialog_page = function (openerp) {
$(this).toggleClass('touched', ($(this).val() != $(this).attr('data-value'))); $(this).toggleClass('touched', ($(this).val() != $(this).attr('data-value')));
}); });
var $textarea = self.$fields_form.find('textarea.oe_trad_field'); var $textarea = self.$fields_form.find('textarea.oe_trad_field');
$textarea.autosize();
$textarea.addClass('autosizeAnimated').autosize({append: "\n"});
$textarea.css({minHeight:'100px'}); $textarea.css({minHeight:'100px'});
}); });
return this; return this;

Loading…
Cancel
Save