mirror of
https://github.com/itsdave-de/fusionpbx_connect.git
synced 2025-05-06 15:45:15 +02:00
redo config
This commit is contained in:
parent
7c31300b02
commit
7545c0e25d
@ -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="width:100%;height:100%;"></div>' }],
|
||||
fields: [{ fieldtype: 'HTML', fieldname: 'map_html', label: 'Map', options: '<div id="map" style="height:500px;"></div>' }],
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user