[FIX] web: remove unused swipe code in FormView
Remove code left behind after commit odoo/odoo@9f7e6bb798 closes odoo/odoo#36333 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
This commit is contained in:
@@ -20,8 +20,6 @@ var FormController = BasicController.extend({
|
||||
toggle_column_order: '_onToggleColumnOrder',
|
||||
focus_control_button: '_onFocusControlButton',
|
||||
form_dialog_discarded: '_onFormDialogDiscarded',
|
||||
swipe_left: '_onSwipeLeft',
|
||||
swipe_right: '_onSwipeRight',
|
||||
}),
|
||||
/**
|
||||
* @override
|
||||
@@ -742,30 +740,6 @@ var FormController = BasicController.extend({
|
||||
this._disableButtons();
|
||||
this.saveRecord().then(this._enableButtons.bind(this)).guardedCatch(this._enableButtons.bind(this));
|
||||
},
|
||||
/**
|
||||
* Called when user swipes left. Move to next record.
|
||||
*
|
||||
* @private
|
||||
* @param {OdooEvent} ev
|
||||
*/
|
||||
_onSwipeLeft: function (ev) {
|
||||
ev.stopPropagation();
|
||||
if (this.pager) {
|
||||
this.pager.next();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Called when user swipes right. Move to previous record.
|
||||
*
|
||||
* @private
|
||||
* @param {OdooEvent} ev
|
||||
*/
|
||||
_onSwipeRight: function (ev) {
|
||||
ev.stopPropagation();
|
||||
if (this.pager) {
|
||||
this.pager.previous();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* This method is called when someone tries to sort a column, most likely
|
||||
* in a x2many list view
|
||||
|
||||
@@ -20,7 +20,6 @@ var FormView = BasicView.extend({
|
||||
multi_record: false,
|
||||
withSearchBar: false,
|
||||
searchMenuTypes: [],
|
||||
jsLibs: [],
|
||||
viewType: 'form',
|
||||
/**
|
||||
* @override
|
||||
@@ -48,9 +47,6 @@ var FormView = BasicView.extend({
|
||||
this.controllerParams.mode = mode;
|
||||
|
||||
this.rendererParams.mode = mode;
|
||||
if (config.device.isMobile) {
|
||||
this.jsLibs.push('/web/static/lib/jquery.touchSwipe/jquery.touchSwipe.js');
|
||||
}
|
||||
},
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user