FBI-2533: When the googleMaps variable was not defined in the class PmDynaform.php and /js/cases/core/pmDynaform.js the form crashes.

clean code

clean code 2

remove an extra coma
This commit is contained in:
Rodrigo Quelca
2018-10-30 13:58:33 +00:00
parent 9553a5b615
commit d87679f079
2 changed files with 3 additions and 3 deletions

View File

@@ -1039,7 +1039,7 @@ class PmDynaform
},
token: credentials,
submitRest: false,
googleMaps: googleMaps
googleMaps: typeof googleMaps !== 'undefined' ? googleMaps : null
});
$(document).find(\"form\").submit(function (e) {
e.preventDefault();
@@ -1101,7 +1101,7 @@ class PmDynaform
" },\n" .
" token: credentials,\n" .
" submitRest: false,\n" .
" googleMaps: googleMaps\n" .
" googleMaps: typeof googleMaps !== 'undefined' ? googleMaps : null\n" .
" });\n" .
" $(document).find('form').find('button').on('click', function (e) {\n" .
" e.preventDefault();\n" .