Self hosted FLOSS fitness/workout, nutrition and weight tracker
Only open the dialog when the form as been sucessfully loaded
Roland Geider946519405546
diff --git a/manager/static/js/workout-manager.js b/manager/static/js/workout-manager.jsindex 5a8151111..0d83be78d 100644--- a/manager/static/js/workout-manager.js+++ b/manager/static/js/workout-manager.js@@ -183,12 +183,14 @@ function form_modal_dialog()$("#ajax-info").load(targetUrl + " .ym-form", function() {- // Initialise the WYSIWYG editor- init_tinymce();+ // Initialise the WYSIWYG editor+ init_tinymce();++ // Open the dialog+ $("#ajax-info").dialog("open");});- // Open the dialog- $("#ajax-info").dialog("open");+});