classes_add_module_form.html 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <div id="bx-classes-add-module-form" class="bx-classes-add-page-form">
  2. __form__
  3. </div>
  4. <script>
  5. $(document).ready(function () {
  6. $("#bx-classes-add-module-form form").ajaxForm({
  7. beforeSubmit: function (formData, $form, options) {
  8. bx_loading($("#bx-classes-add-module-form form"), true);
  9. },
  10. success: function (oData) {
  11. if (typeof oData === "object") {
  12. if ('ReloadLessonsAndClosePopup' == oData.action) {
  13. $('.bx-popup-applied:visible').dolPopupHide();
  14. loadDynamicBlockAuto('.bx-course-controls');
  15. }
  16. else if ('ShowMsg' == oData.action) {
  17. bx_alert(oData.msg);
  18. }
  19. else {
  20. bx_alert('<bx_text_js:_sys_txt_error_occured />');
  21. }
  22. }
  23. else {
  24. $("#bx-classes-add-module-form").parent().html(oData).bxProcessHtml();
  25. }
  26. }
  27. });
  28. });
  29. </script>