fix syntax

This commit is contained in:
Luiz Costa 2024-06-06 12:23:51 +01:00
parent eb83666ce0
commit 0ee473948c

View File

@ -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: '<div id="map" style="widget:800px;height:500px;"></div>' }],
fields: [{ fieldtype: 'HTML', fieldname: 'map_html', label: 'Map', options: '<div id="map" style="width:800px;height:600px;"></div>' }],
primary_action_label: 'Close',
primary_action() {
if (currentMap) {