PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 All 140 releases
← All changes | assets/dist/js/admin/admin-courses.js +2 -3 4.4.6 → 4.4.9 View file →
@@ -418,9 +418,8 @@
418 418 if (!btn) {
419 419 return;
420 420 }
421 421 lpAssetsJsPath_utils_js__WEBPACK_IMPORTED_MODULE_1__.lpSetLoadingEl(btn, isLoading ? 1 : 0);
422 - btn.disabled = !!isLoading;
423 422 }
424 423 init() {
425 424 if (ViewStudentsModal._loadedEvents) {
426 425 return;
@@ -456,9 +455,9 @@
456 455 }]);
457 456 }
458 457 handleOpenModal(args) {
459 458 const btn = args?.target?.closest(ViewStudentsModal.selectors.courseTrigger);
460 - if (!btn || this.isRequesting || btn.classList.contains('loading') || btn.disabled) {
459 + if (!btn || this.isRequesting || btn.classList.contains('loading')) {
461 460 return;
462 461 }
463 462 const courseId = parseInt(btn.dataset.courseId, 10) || 0;
464 463 if (!courseId) {
@@ -508,9 +507,9 @@
508 507 }
509 508 if (args?.e) {
510 509 args.e.preventDefault();
511 510 }
512 - if (this.isRequesting || btn.classList.contains('loading') || btn.disabled) {
511 + if (this.isRequesting || btn.classList.contains('loading')) {
513 512 return;
514 513 }
515 514 form.reset();
516 515 this.setButtonLoadingState(btn, true);