Self hosted FLOSS fitness/workout, nutrition and weight tracker
Replace document-ready with on-pageinit
Roland Geider9dca1af71d4b
diff --git a/wger/weight/templates/mobile/weight_overview.html b/wger/weight/templates/mobile/weight_overview.htmlindex a6f696bd0..2f6a757af 100644--- a/wger/weight/templates/mobile/weight_overview.html+++ b/wger/weight/templates/mobile/weight_overview.html@@ -18,15 +18,7 @@<script type="text/javascript">--// Initialise the datepicker for the modal dialog-function custom_modal_init()-{- init_weight_datepicker();-}---$(document).ready(function () {+$(document).on('pageinit', function () {// Load the chart data, without arguments this returns all weight entriesvar date_min = $("#weight_filter_from").val();