Skip to content

Commit

Permalink
Charts disappearing bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil9l committed May 14, 2016
1 parent 0221b8b commit 9074669
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
* Статиска школ

## Скачать
* [google store](https://chrome.google.com/webstore/detail/vk-charts/mbbonpdbhkfpcddfojmigibngoiamloo)
* [github](https://github.com/Phil9l/vk-friends-statistics/releases)
2 changes: 1 addition & 1 deletion js/vkinject.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ DropDown.prototype = {
var obj = this;
obj.dd.on('click', function(event){
$(this).toggleClass('active');
if ($(event.target).is('span')){
if ($(event.target).is('span') && typeof $(event.target).attr('statistic-type') !== 'undefined') {
$('.friend-statistic').hide();
$('.friend-statistic[statistic-type="' + $(event.target).attr('statistic-type') + '"]').show();
$('.friends-chart-current-choice').text($(event.target).text());
Expand Down
10 changes: 5 additions & 5 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"manifest_version": 2,
"name": "VK Charts",
"description": "Allows to see statistics based on user vk profile.",
"version": "1.0.4",
"description": "Показывает статистику на странице профиля вконтакте.",
"version": "1.0.5",
"permissions": [
"tabs",
"storage",
"http://*.vk.com/*",
"http://vk.com/*",
"https://*.vk.com/*",
"https://vk.com/*"
"https://vk.com/*",
"http://*.vk.com/*",
"https://*.vk.com/*"
],
"icons": {
"48": "images/icons/icon48.png",
Expand Down

0 comments on commit 9074669

Please sign in to comment.