From 4828a00f9e5b4e65991bde43fd423c42da74a91b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Wed, 25 May 2016 10:41:35 +0200 Subject: [REF] web: move dom_utils to its own file --- addons/web/static/src/js/framework/utils.js | 69 ----------------------------- 1 file changed, 69 deletions(-) (limited to 'addons/web/static/src/js/framework/utils.js') diff --git a/addons/web/static/src/js/framework/utils.js b/addons/web/static/src/js/framework/utils.js index c19733989b5..40774e9095d 100644 --- a/addons/web/static/src/js/framework/utils.js +++ b/addons/web/static/src/js/framework/utils.js @@ -494,72 +494,3 @@ return { }; }); - -odoo.define('web.dom_utils', function (require) { -"use strict"; - -var core = require('web.core'); - -// TO DO: move this into new file dom_utils.js -/** - * Autoresize a $textarea node, by recomputing its height when necessary - * @param {number} [options.min_height] by default, 50. - * @param {Widget} [options.parent] if set, autoresize will listen to some extra - * events to decide when to resize itself. This is useful for widgets that are - * not in the dom when the autoresize is declared. - */ -function autoresize ($textarea, options) { - options = options || {}; - - var $fixed_text_area; - var min_height = (options && options.min_height) || 50; - if (!$fixed_text_area) { - $fixed_text_area = $('