diff options
| author | 2014-10-01 13:58:09 +0200 | |
|---|---|---|
| committer | 2014-10-01 13:58:09 +0200 | |
| commit | fe655e0d9d2fb1173099d77c478bbb2f7ac8b1e1 (patch) | |
| tree | 47904eeb97e23af9ae4997f14d310acf5ae52979 | |
| parent | 405f23050b18e8388edb6f8be90aa59c17ada421 (diff) | |
Fix close slider when a feed is selected
See https://github.com/marienfressinaud/FreshRSS/issues/646
| -rw-r--r-- | app/views/subscription/index.phtml | 5 | ||||
| -rw-r--r-- | p/scripts/main.js | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/views/subscription/index.phtml b/app/views/subscription/index.phtml index 10578bdd3..577ddd972 100644 --- a/app/views/subscription/index.phtml +++ b/app/views/subscription/index.phtml @@ -134,8 +134,9 @@ <?php } ?> </div> -<a id="close-slider"></a> -<div id="slider"<?php echo isset($this->feed) ? ' class="active"' : ''; ?>> +<?php $class = isset($this->feed) ? ' class="active"' : ''; ?> +<a href="#" id="close-slider"<?php echo $class; ?>></a> +<div id="slider"<?php echo $class; ?>> <?php if (isset($this->feed)) { $this->renderHelper('feed/update'); diff --git a/p/scripts/main.js b/p/scripts/main.js index 925a93650..005dc961b 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -1272,6 +1272,7 @@ function init_slider_observers() { closer.on('click', function() { closer.removeClass('active'); slider.removeClass('active'); + return false; }); } |
