Просмотр исходного кода

Merge pull request #458 from aledeg/bottom-close

Add an observer to close an article when clicking on its footer
Alexandre Alapetite 12 лет назад
Родитель
Сommit
8320154f6c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      p/scripts/main.js

+ 1 - 1
p/scripts/main.js

@@ -606,7 +606,7 @@ function init_shortcuts() {
 }
 
 function init_stream(divStream) {
-	divStream.on('click', '.flux_header', function (e) {	//flux_header_toggle
+	divStream.on('click', '.flux_header,.flux_content > .bottom', function (e) {	//flux_header_toggle, flux_footer_toggle
 		if ($(e.target).closest('.item.website, .item.link').length > 0) {
 			return;
 		}