Added check for data value
authorThierry Florac <thierry.florac@onf.fr>
Mon, 19 Nov 2018 15:18:31 +0100
changeset 461 6efc2fc367c1
parent 460 b52678741355
child 462 9ac9529f0bf7
Added check for data value
src/pyams_skin/resources/js/myams-dialog.js
--- a/src/pyams_skin/resources/js/myams-dialog.js	Mon Nov 19 15:18:08 2018 +0100
+++ b/src/pyams_skin/resources/js/myams-dialog.js	Mon Nov 19 15:18:31 2018 +0100
@@ -133,7 +133,7 @@
 													default:
 														var content = $(result);
 														var dialog = $('.modal-dialog', content.wrap('<div></div>').parent());
-														var dialogData = dialog.data();
+														var dialogData = dialog.data() || {};
 														var dataOptions = {
 															backdrop: 'static',
 															overflow: dialogData.amsModalOverflow || '.modal-viewport',