Преглед на файлове

Merge pull request #458 from aledeg/bottom-close

Add an observer to close an article when clicking on its footer
Alexandre Alapetite преди 12 години
родител
ревизия
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) {
 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) {
 		if ($(e.target).closest('.item.website, .item.link').length > 0) {
 			return;
 			return;
 		}
 		}