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:
@@ -1039,7 +1039,7 @@ class PmDynaform
|
|||||||
},
|
},
|
||||||
token: credentials,
|
token: credentials,
|
||||||
submitRest: false,
|
submitRest: false,
|
||||||
googleMaps: googleMaps
|
googleMaps: typeof googleMaps !== 'undefined' ? googleMaps : null
|
||||||
});
|
});
|
||||||
$(document).find(\"form\").submit(function (e) {
|
$(document).find(\"form\").submit(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@@ -1101,7 +1101,7 @@ class PmDynaform
|
|||||||
" },\n" .
|
" },\n" .
|
||||||
" token: credentials,\n" .
|
" token: credentials,\n" .
|
||||||
" submitRest: false,\n" .
|
" submitRest: false,\n" .
|
||||||
" googleMaps: googleMaps\n" .
|
" googleMaps: typeof googleMaps !== 'undefined' ? googleMaps : null\n" .
|
||||||
" });\n" .
|
" });\n" .
|
||||||
" $(document).find('form').find('button').on('click', function (e) {\n" .
|
" $(document).find('form').find('button').on('click', function (e) {\n" .
|
||||||
" e.preventDefault();\n" .
|
" e.preventDefault();\n" .
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ $(window).load(function () {
|
|||||||
},
|
},
|
||||||
token: credentials,
|
token: credentials,
|
||||||
submitRest: false,
|
submitRest: false,
|
||||||
googleMaps: googleMaps,
|
googleMaps: typeof googleMaps !== "undefined" ? googleMaps : null,
|
||||||
onLoad: function () {
|
onLoad: function () {
|
||||||
var dynaformname = document.createElement("input"),
|
var dynaformname = document.createElement("input"),
|
||||||
appuid,
|
appuid,
|
||||||
|
|||||||
Reference in New Issue
Block a user