Explorar el Código

Merge pull request #640 from aledeg/fix-shortcut

Fix read all shortcut
Marien Fressinaud hace 11 años
padre
commit
1bbbc17636
Se han modificado 1 ficheros con 1 adiciones y 8 borrados
  1. 1 8
      p/scripts/main.js

+ 1 - 8
p/scripts/main.js

@@ -538,14 +538,7 @@ function init_shortcuts() {
 	});
 	});
 	shortcut.add("shift+" + shortcuts.mark_read, function () {
 	shortcut.add("shift+" + shortcuts.mark_read, function () {
 		// on marque tout comme lu
 		// on marque tout comme lu
-		var btn = $(".nav_menu .read_all");
-		if (btn.hasClass('confirm')) {
-			if (confirm(str_confirmation)) {
-				btn.click();
-			}
-		} else {
-			btn.click();
-		}
+		$(".nav_menu .read_all").click();
 	}, {
 	}, {
 		'disable_in_input': true
 		'disable_in_input': true
 	});
 	});