From 7545c0e25df41dc1090d7d1363f75f139d5bd69e Mon Sep 17 00:00:00 2001 From: Luiz Costa Date: Fri, 7 Jun 2024 16:07:15 +0100 Subject: [PATCH] redo config --- .../fleet_management/doctype/trip/trip_list.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/fleet_management/fleet_management/doctype/trip/trip_list.js b/fleet_management/fleet_management/doctype/trip/trip_list.js index 853b3d8..c594262 100644 --- a/fleet_management/fleet_management/doctype/trip/trip_list.js +++ b/fleet_management/fleet_management/doctype/trip/trip_list.js @@ -8,7 +8,7 @@ function loadLeafletAndInitMap(frm, callback) { function create_dialog_and_init_map(frm) { const dialog = new frappe.ui.Dialog({ title: 'Show Route', - fields: [{ fieldtype: 'HTML', fieldname: 'map_html', label: 'Map', options: '
' }], + fields: [{ fieldtype: 'HTML', fieldname: 'map_html', label: 'Map', options: '
' }], primary_action_label: 'Close', primary_action() { if (currentMap) { @@ -20,12 +20,6 @@ function create_dialog_and_init_map(frm) { size: 'extra-large' }); - // Adjust the size of the dialog - //dialog.$wrapper.find('.modal-content').css("width", "80%"); - //dialog.$wrapper.find('.modal-content').css("margin-left", '-80%'); - //dialog.$wrapper.find('#map').css("width", '100%'); - //dialog.$wrapper.find('.modal-content').css("height", "600px"); - // Add hide event to reload the page when the dialog is closed dialog.onhide = function () { window.location.reload();