From 66df1b2230e9b11c1fa7db921795b02c026205e4 Mon Sep 17 00:00:00 2001 From: Simon Marsh Date: Sat, 12 Jan 2019 11:22:13 +0000 Subject: [PATCH] Update modal dialog for Bootstrap 4 --- static/js/lg.js | 4 ++-- templates/layout.html | 30 ++++++++++++++++++------------ 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/static/js/lg.js b/static/js/lg.js index ba11f05..ed2b023 100644 --- a/static/js/lg.js +++ b/static/js/lg.js @@ -51,8 +51,8 @@ $(function(){ event.preventDefault(); link = $(this).attr('href'); $.getJSON(link, function(data) { - $(".modal h3").html(data.title); - $(".modal .modal-body > p").html(data.output); + $(".modal .modal-dialog .modal-content .modal-header .modal-title").html(data.title); + $(".modal .modal-dialog .modal-content .modal-body > p").html(data.output); $(".modal").modal('show'); }); }); diff --git a/templates/layout.html b/templates/layout.html index 2ae820a..09ed813 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -93,18 +93,24 @@ - + + +