[IMP] *: remove jquery.ba-bbq 🍖
Task Id: 3439226 closes odoo/odoo#133763 Signed-off-by: Pierre Paridans (app) <app@odoo.com>
This commit is contained in:
@@ -74,7 +74,6 @@
|
||||
'web/static/lib/jquery/jquery.js',
|
||||
'web/static/lib/jquery.ui/jquery-ui.js',
|
||||
'web/static/lib/jquery/jquery.browser.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',
|
||||
'web/static/lib/bootstrap/js/dist/dom/data.js',
|
||||
@@ -150,8 +149,6 @@
|
||||
|
||||
'web/static/src/env.js',
|
||||
|
||||
'web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js',
|
||||
|
||||
'web/static/src/legacy/scss/fields.scss',
|
||||
|
||||
'base/static/src/scss/res_partner.scss',
|
||||
|
||||
@@ -157,7 +157,6 @@
|
||||
'web/static/src/libs/owl.js',
|
||||
'web/static/lib/jquery/jquery.js',
|
||||
'web/static/lib/jquery/jquery.browser.js',
|
||||
'web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js',
|
||||
'web/static/src/legacy/js/**/*',
|
||||
('remove', 'web/static/src/legacy/js/libs/**/*'),
|
||||
('remove', 'web/static/src/legacy/js/public/**/*'),
|
||||
|
||||
@@ -147,10 +147,10 @@ publicWidget.registry.portalSearchPanel = publicWidget.Widget.extend({
|
||||
* @private
|
||||
*/
|
||||
_search: function () {
|
||||
var search = $.deparam(window.location.search.substring(1));
|
||||
search['search_in'] = this.$('.dropdown-item.active').attr('href').replace('#', '');
|
||||
search['search'] = this.$('input[name="search"]').val();
|
||||
window.location.search = $.param(search);
|
||||
var search = new URL(window.location).searchParams;
|
||||
search.set("search_in", this.$('.dropdown-item.active').attr('href').replace('#', ''));
|
||||
search.set("search", this.$('input[name="search"]').val());
|
||||
window.location.search = search.toString();
|
||||
},
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
@@ -125,7 +125,6 @@
|
||||
'web/static/lib/jquery/jquery.js',
|
||||
'web/static/lib/jquery.ui/jquery-ui.js',
|
||||
'web/static/lib/jquery/jquery.browser.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',
|
||||
'web/static/lib/bootstrap/js/dist/dom/data.js',
|
||||
@@ -201,8 +200,6 @@
|
||||
|
||||
'web/static/src/env.js',
|
||||
|
||||
'web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js',
|
||||
|
||||
'web/static/src/legacy/scss/fields.scss',
|
||||
|
||||
'base/static/src/scss/res_partner.scss',
|
||||
|
||||
@@ -25,9 +25,11 @@ publicWidget.registry.SalePortalSidebar = PortalSidebar.extend({
|
||||
// Nav Menu ScrollSpy
|
||||
this._generateMenu();
|
||||
// After signature, automatically open the popup for payment
|
||||
if ($.bbq.getState('allow_payment') === 'yes' && this.$('#o_sale_portal_paynow').length) {
|
||||
const hash = new URLSearchParams(window.location.hash.substring(1));
|
||||
if (hash.get("allow_payment") === "yes" && this.$("#o_sale_portal_paynow").length) {
|
||||
this.el.querySelector('#o_sale_portal_paynow').click();
|
||||
$.bbq.removeState('allow_payment');
|
||||
hash.delete("allow_payment");
|
||||
window.location.hash = hash.toString();
|
||||
}
|
||||
return def;
|
||||
},
|
||||
|
||||
@@ -74,7 +74,6 @@ This module provides the core of the Odoo Web Client.
|
||||
'web/static/lib/jquery/jquery.js',
|
||||
'web/static/lib/jquery.ui/jquery-ui.js',
|
||||
'web/static/lib/jquery/jquery.browser.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',
|
||||
'web/static/lib/bootstrap/js/dist/dom/data.js',
|
||||
@@ -137,8 +136,6 @@ This module provides the core of the Odoo Web Client.
|
||||
|
||||
'web/static/src/libs/pdfjs.js',
|
||||
|
||||
'web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js',
|
||||
|
||||
'web/static/src/scss/ace.scss',
|
||||
'web/static/src/scss/base_document_layout.scss',
|
||||
|
||||
@@ -218,7 +215,6 @@ This module provides the core of the Odoo Web Client.
|
||||
'web/static/lib/jquery/jquery.js',
|
||||
'web/static/lib/jquery.ui/jquery-ui.js',
|
||||
'web/static/lib/jquery/jquery.browser.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',
|
||||
'web/static/lib/bootstrap/js/dist/dom/data.js',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -63,7 +63,6 @@ Odoo Web Editor widget.
|
||||
'web/static/lib/jquery/jquery.js',
|
||||
'web/static/lib/jquery.ui/jquery-ui.js',
|
||||
'web/static/lib/jquery/jquery.browser.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',
|
||||
'web/static/lib/bootstrap/js/dist/dom/data.js',
|
||||
|
||||
@@ -395,12 +395,13 @@ export class WebsitePreview extends Component {
|
||||
const { href, target, classList } = linkEl;
|
||||
if (classList.contains('o_add_language')) {
|
||||
ev.preventDefault();
|
||||
const searchParams = new URLSearchParams(href);
|
||||
this.action.doAction('base.action_view_base_language_install', {
|
||||
target: 'new',
|
||||
additionalContext: {
|
||||
params: {
|
||||
website_id: this.websiteId,
|
||||
url_return: $.deparam(href).url_return,
|
||||
url_return: searchParams.get("url_return"),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -156,22 +156,19 @@ export const WebsiteSale = publicWidget.Widget.extend(VariantMixin, cartHandlerM
|
||||
}
|
||||
},
|
||||
_applyHash: function () {
|
||||
var hash = window.location.hash.substring(1);
|
||||
if (hash) {
|
||||
var params = $.deparam(hash);
|
||||
if (params['attr']) {
|
||||
var attributeIds = params['attr'].split(',');
|
||||
var $inputs = this.$('input.js_variant_change, select.js_variant_change option');
|
||||
attributeIds.forEach((id) => {
|
||||
var $toSelect = $inputs.filter('[data-value_id="' + id + '"]');
|
||||
if ($toSelect.is('input[type="radio"]')) {
|
||||
$toSelect.prop('checked', true);
|
||||
} else if ($toSelect.is('option')) {
|
||||
$toSelect.prop('selected', true);
|
||||
}
|
||||
});
|
||||
this._changeAttribute(['.css_attribute_color', '.o_variant_pills']);
|
||||
}
|
||||
const params = new URLSearchParams(window.location.hash.substring(1));
|
||||
if (params.get("attr")) {
|
||||
var attributeIds = params.get("attr").split(',');
|
||||
var $inputs = this.$('input.js_variant_change, select.js_variant_change option');
|
||||
attributeIds.forEach((id) => {
|
||||
var $toSelect = $inputs.filter('[data-value_id="' + id + '"]');
|
||||
if ($toSelect.is('input[type="radio"]')) {
|
||||
$toSelect.prop('checked', true);
|
||||
} else if ($toSelect.is('option')) {
|
||||
$toSelect.prop('selected', true);
|
||||
}
|
||||
});
|
||||
this._changeAttribute(['.css_attribute_color', '.o_variant_pills']);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -697,10 +694,10 @@ export const WebsiteSale = publicWidget.Widget.extend(VariantMixin, cartHandlerM
|
||||
* @private
|
||||
*/
|
||||
_applyHashFromSearch() {
|
||||
const params = $.deparam(window.location.search.slice(1));
|
||||
if (params.attrib) {
|
||||
const params = new URL(window.location).searchParams;
|
||||
if (params.get("attrib")) {
|
||||
const dataValueIds = [];
|
||||
for (const attrib of [].concat(params.attrib)) {
|
||||
for (const attrib of [].concat(params.get("attrib"))) {
|
||||
const attribSplit = attrib.split('-');
|
||||
const attribValueSelector = `.js_variant_change[name="ptal-${attribSplit[0]}"][value="${attribSplit[1]}"]`;
|
||||
const attribValue = this.el.querySelector(attribValueSelector);
|
||||
|
||||
@@ -165,7 +165,6 @@ Featuring
|
||||
'web/static/lib/jquery/jquery.js',
|
||||
'web/static/lib/jquery.ui/jquery-ui.js',
|
||||
'web/static/lib/jquery/jquery.browser.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',
|
||||
'web/static/lib/bootstrap/js/dist/dom/data.js',
|
||||
|
||||
@@ -513,9 +513,9 @@
|
||||
this.slides = this._preprocessSlideData(slides);
|
||||
this.channel = channelData;
|
||||
var slide;
|
||||
var urlParams = $.deparam.querystring();
|
||||
const urlParams = new URL(window.location).searchParams;
|
||||
if (defaultSlideId) {
|
||||
slide = findSlide(this.slides, {id: defaultSlideId, isQuiz: urlParams.quiz === "1" });
|
||||
slide = findSlide(this.slides, {id: defaultSlideId, isQuiz: String(urlParams.get("quiz")) === "1" });
|
||||
} else {
|
||||
slide = this.slides[0];
|
||||
}
|
||||
|
||||
Vendored
-4
@@ -249,10 +249,6 @@ Files: addons/web/static/lib/jSignature/jSignatureCustom.js
|
||||
Copyright: 2012 Willow Systems Corp; 2010 Brinley Ang
|
||||
License: MIT
|
||||
|
||||
Files: addons/web/static/lib/jquery.ba-bbq/*
|
||||
Copyright: 2010 "Cowboy" Ben Alman
|
||||
License: MIT
|
||||
|
||||
Files: addons/web/static/lib/jquery.mjs.nestedSortable/*
|
||||
Copyright: 2010-2016 Manuele J Sarfatti and contributors
|
||||
License: MIT
|
||||
|
||||
Reference in New Issue
Block a user