ソースを参照

Fix regression promote user (#7786)

Quick fix, while waiting for something better
Regression from https://github.com/FreshRSS/FreshRSS/pull/7771
Alexandre Alapetite 8 ヶ月 前
コミット
eda66dda48
1 ファイル変更6 行追加0 行削除
  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);
 		}
 	};
+	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; });
 }