Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add a call to a custom function on modal dialog setup.
Roland Geider3676a64d5fa2
diff --git a/manager/static/js/workout-manager.js b/manager/static/js/workout-manager.jsindex b0924ea81..200499e10 100644--- a/manager/static/js/workout-manager.js+++ b/manager/static/js/workout-manager.js@@ -187,6 +187,13 @@ function form_modal_dialog()// Initialise the WYSIWYG editorinit_tinymce();++ // Call other custom initialisation functions+ // (e.g. if the form as an autocompleter, it has to be initliasided again)+ if (typeof custom_modal_init != "undefined")+ {+ custom_modal_init();+ }// Open the dialog$("#ajax-info").dialog("open");@@ -196,4 +203,5 @@ function form_modal_dialog()});-}\ No newline at end of file+}+