[IMP] web,survey,website_slides: remove unused jQuery Form plugin
None of the main methods provided by this plugin were stil used; only the internal method `enable()`. This commit replaces these calls by toggling the `disabled` HTML attribute. closes odoo/odoo#130817 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
This commit is contained in:
@@ -159,7 +159,7 @@ publicWidget.registry.SurveyFormWidget = publicWidget.Widget.extend(SurveyPreloa
|
||||
var $commentInput = $choiceItemGroup.find('textarea[type="text"]');
|
||||
|
||||
if ($otherItem.prop('checked') || $commentInput.hasClass('o_survey_comment')) {
|
||||
$commentInput.enable();
|
||||
$commentInput.each((idx, $input) => $input.disabled = false);
|
||||
$commentInput.closest('.o_survey_comment_container').removeClass('d-none');
|
||||
if ($otherItem.prop('checked')) {
|
||||
$commentInput.focus();
|
||||
@@ -167,7 +167,7 @@ publicWidget.registry.SurveyFormWidget = publicWidget.Widget.extend(SurveyPreloa
|
||||
} else {
|
||||
$commentInput.val('');
|
||||
$commentInput.closest('.o_survey_comment_container').addClass('d-none');
|
||||
$commentInput.enable(false);
|
||||
$commentInput.each((idx, $input) => $input.disabled = true);
|
||||
}
|
||||
|
||||
var $matrixBtn = $target.closest('.o_survey_matrix_btn');
|
||||
|
||||
@@ -87,7 +87,6 @@ This module provides the core of the Odoo Web Client.
|
||||
'web/static/lib/jquery/jquery.browser.js',
|
||||
'web/static/lib/jquery.blockUI/jquery.blockUI.js',
|
||||
'web/static/lib/jquery.hotkeys/jquery.hotkeys.js',
|
||||
'web/static/lib/jquery.form/jquery.form.js',
|
||||
'web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js',
|
||||
'web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js',
|
||||
'web/static/lib/popper/popper.js',
|
||||
@@ -288,7 +287,6 @@ This module provides the core of the Odoo Web Client.
|
||||
'web/static/lib/jquery/jquery.browser.js',
|
||||
'web/static/lib/jquery.blockUI/jquery.blockUI.js',
|
||||
'web/static/lib/jquery.hotkeys/jquery.hotkeys.js',
|
||||
'web/static/lib/jquery.form/jquery.form.js',
|
||||
'web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js',
|
||||
'web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js',
|
||||
'web/static/lib/popper/popper.js',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -167,7 +167,6 @@ Featuring
|
||||
'web/static/lib/jquery/jquery.browser.js',
|
||||
'web/static/lib/jquery.blockUI/jquery.blockUI.js',
|
||||
'web/static/lib/jquery.hotkeys/jquery.hotkeys.js',
|
||||
'web/static/lib/jquery.form/jquery.form.js',
|
||||
'web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js',
|
||||
'web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js',
|
||||
'web/static/lib/popper/popper.js',
|
||||
|
||||
Vendored
-4
@@ -257,10 +257,6 @@ Files: addons/web/static/lib/jquery.blockUI/*
|
||||
Copyright: 2007-2013 M. Alsup
|
||||
License: MIT
|
||||
|
||||
Files: addons/web/static/lib/jquery.form/*
|
||||
Copyright: 2014 M. Alsup
|
||||
License: MIT
|
||||
|
||||
Files: addons/web/static/lib/jquery.hotkeys/*
|
||||
Copyright: 2010 John Resig
|
||||
License: MIT
|
||||
|
||||
Reference in New Issue
Block a user