Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Use on pageinit instead of document.ready

Roland Geider9e939046a299
diff --git a/wger/manager/templates/mobile/template.html b/wger/manager/templates/mobile/template.html
index a4b4a6d10..674332aa0 100644
--- a/wger/manager/templates/mobile/template.html
+++ b/wger/manager/templates/mobile/template.html
@@ -28,8 +28,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="{% static 'css/jquery-mobile.css' %}">
-
- <link rel="stylesheet" type="text/css" href="{% static 'css/workout-manager-common.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/workout-manager-mobile.css' %}">
diff --git a/wger/nutrition/templates/mobile/ingredient/view.html b/wger/nutrition/templates/mobile/ingredient/view.html
index 729b1e09a..330a71158 100644
--- a/wger/nutrition/templates/mobile/ingredient/view.html
+++ b/wger/nutrition/templates/mobile/ingredient/view.html
@@ -33,7 +33,7 @@ function update_value() {
});
}
-$(document).ready(function() {
+$(document).on('pageinit', function(){
// Prevent the form from being sent
$('#nutritional-values-form').submit(function(e) {