Self hosted FLOSS fitness/workout, nutrition and weight tracker
Set the title on the modal dialog for weight entries
Roland Geider247544bb8dd0
diff --git a/manager/static/js/workout-manager.js b/manager/static/js/workout-manager.jsindex b17e25605..f5cbff603 100644--- a/manager/static/js/workout-manager.js+++ b/manager/static/js/workout-manager.js@@ -264,15 +264,16 @@ function scatterplot_modal_dialog(id){var targetUrl = '/weight/' + id + '/edit/'- $("#ajax-info").load(targetUrl + " .ym-form", function() {- // Open the dialog++ $("#ajax-info").load(targetUrl + " .ym-form", function(responseText, textStatus) {++ // Set the title and open the dialog+ $("#ajax-info").dialog({title: $(responseText).find("#main-content h2").html()});$("#ajax-info").dialog("open");// Initialise the datepicker for the modal dialoginit_weight_datepicker();});--}function init_ingredient_autocompleter()