Explorar el Código

Fix regression promote user (#7786)

Quick fix, while waiting for something better
Regression from https://github.com/FreshRSS/FreshRSS/pull/7771
Alexandre Alapetite hace 9 meses
padre
commit
eda66dda48
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      p/scripts/main.js

+ 6 - 0
p/scripts/main.js

@@ -2034,6 +2034,12 @@ function init_confirm_action() {
 			return confirm(str_confirmation);
 			return confirm(str_confirmation);
 		}
 		}
 	};
 	};
+	const slider = document.getElementById('slider');
+	if (slider) {
+		slider.addEventListener('freshrss:slider-load', function (e) {
+			slider.querySelectorAll('button.confirm').forEach(function (b) { b.disabled = false; });
+		});
+	}
 	document.querySelectorAll('button.confirm').forEach(function (b) { b.disabled = false; });
 	document.querySelectorAll('button.confirm').forEach(function (b) { b.disabled = false; });
 }
 }