Show More
@@ -93,19 +93,22 b' function updateFavPosts() {' | |||||
93 |
|
93 | |||
94 | function initFavPanel() { |
|
94 | function initFavPanel() { | |
95 | updateFavPosts(); |
|
95 | updateFavPosts(); | |
96 | setInterval(updateFavPosts, FAV_POST_UPDATE_PERIOD); |
|
96 | ||
97 |
$('#fav-panel-btn'). |
|
97 | if ($('#fav-panel-btn').length > 0) { | |
98 | $('#fav-panel').toggle(); |
|
98 | setInterval(updateFavPosts, FAV_POST_UPDATE_PERIOD); | |
99 | updateFavPosts(); |
|
99 | $('#fav-panel-btn').click(function() { | |
|
100 | $('#fav-panel').toggle(); | |||
|
101 | updateFavPosts(); | |||
100 |
|
102 | |||
101 | return false; |
|
103 | return false; | |
102 | }); |
|
104 | }); | |
103 |
|
105 | |||
104 | $(document).on('keyup.removepic', function(e) { |
|
106 | $(document).on('keyup.removepic', function(e) { | |
105 | if(e.which === 27) { |
|
107 | if(e.which === 27) { | |
106 | $('#fav-panel').hide(); |
|
108 | $('#fav-panel').hide(); | |
107 | } |
|
109 | } | |
108 | }); |
|
110 | }); | |
|
111 | } | |||
109 | } |
|
112 | } | |
110 |
|
113 | |||
111 | $( document ).ready(function() { |
|
114 | $( document ).ready(function() { |
General Comments 0
You need to be logged in to leave comments.
Login now