Self hosted FLOSS fitness/workout, nutrition and weight tracker
Replace 'on page init' with document ready calls
Roland Geider1f0c1fae4367
diff --git a/wger/core/static/js/workout-manager-mobile.js b/wger/core/static/js/workout-manager-mobile.jsindex 63edc9caf..a0028e063 100644--- a/wger/core/static/js/workout-manager-mobile.js+++ b/wger/core/static/js/workout-manager-mobile.js@@ -26,7 +26,7 @@ function form_modal_dialog() {/** Handle external links with a Web Activity when in Firefox OS*/-$(document).on('pageinit', function () {+$(document).ready(function() {if (typeof MozActivity != 'undefined') {/** External linksdiff --git a/wger/manager/templates/mobile/workout/view.html b/wger/manager/templates/mobile/workout/view.htmlindex 431ee8c09..0710b8a58 100644--- a/wger/manager/templates/mobile/workout/view.html+++ b/wger/manager/templates/mobile/workout/view.html@@ -11,7 +11,7 @@{% block scripts %}<script>-$( document ).off("pageinit").on("pageinit", function() {+$(document).ready(function() {/** Show/Hide the comments to the exercises*/