Showing
2 changed files
with
5 additions
and
0 deletions
@@ -114,6 +114,10 @@ define('channel', function(require, exports) { | @@ -114,6 +114,10 @@ define('channel', function(require, exports) { | ||
114 | e.preventDefault(); | 114 | e.preventDefault(); |
115 | swiper.swipeNext(); | 115 | swiper.swipeNext(); |
116 | }); | 116 | }); |
117 | + $(".dib a").on("click", function(event) { | ||
118 | + var index = $(this).index(".dib a"); | ||
119 | + swiper.swipeTo(index + 1); | ||
120 | + }); | ||
117 | } | 121 | } |
118 | }).init(); | 122 | }).init(); |
119 | 123 |
@@ -186,6 +186,7 @@ EOL; | @@ -186,6 +186,7 @@ EOL; | ||
186 | }) | 186 | }) |
187 | seajs.use(['jquery', 'channel'], function($, channel) { | 187 | seajs.use(['jquery', 'channel'], function($, channel) { |
188 | channel.index(); | 188 | channel.index(); |
189 | + channel.common(); | ||
189 | }) | 190 | }) |
190 | </script> | 191 | </script> |
191 | <?php $this->_endblock();?> | 192 | <?php $this->_endblock();?> |
-
Please register or login to post a comment