From 2a5e9da2d82f4c5db5c52d1612290d7907efb3a1 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Thu, 15 Jan 2015 15:19:12 +0400 Subject: [PATCH] New options for WebSocket post processing. --- chrome_point_plus/_locales/en/messages.json | 12 ++++++------ chrome_point_plus/_locales/ru/messages.json | 14 +++++++------- chrome_point_plus/js/point-plus.js | 5 +++-- chrome_point_plus/options.html | 12 ++++++------ 4 files changed, 22 insertions(+), 21 deletions(-) diff --git a/chrome_point_plus/_locales/en/messages.json b/chrome_point_plus/_locales/en/messages.json index 0735059..4871642 100644 --- a/chrome_point_plus/_locales/en/messages.json +++ b/chrome_point_plus/_locales/en/messages.json @@ -140,14 +140,14 @@ "option_ws_comments_notifications": { "message": "Show desktop notifications" }, - "option_ws_feeds": { - "message": "Process feeds ▼" + "option_ws_posts": { + "message": "Process posts ▼" }, - "option_ws_feeds_subscriptions": { - "message": "Subscriptions feed" + "option_ws_posts_add": { + "message": "Add posts to the feed" }, - "option_ws_feeds_blogs": { - "message": "User blog pages (only when subscribed)" + "option_ws_posts_notifications": { + "message": "Show desktop notifications" }, "option_enlarge_font": { "message": "Enlarge font size ▼" diff --git a/chrome_point_plus/_locales/ru/messages.json b/chrome_point_plus/_locales/ru/messages.json index f005fb7..8d6b14d 100644 --- a/chrome_point_plus/_locales/ru/messages.json +++ b/chrome_point_plus/_locales/ru/messages.json @@ -138,16 +138,16 @@ "message": "Затухание подсветки через 20 секунд" }, "option_ws_comments_notifications": { - "message": "Включить уведомления на рабочем столе" + "message": "Показывать всплывающие уведомления" }, - "option_ws_feeds": { - "message": "Обрабатывать ленты ▼" + "option_ws_posts": { + "message": "Обрабатывать посты ▼" }, - "option_ws_feeds_subscriptions": { - "message": "Подписки" + "option_ws_posts_add": { + "message": "Автоматически добавлять в ленту" }, - "option_ws_feeds_blogs": { - "message": "Блоги пользователей (только при подписке)" + "option_ws_posts_notifications": { + "message": "Показывать всплывающие уведомления" }, "option_enlarge_font": { "message": "Увеличить шрифт ▼" diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index 6ff1507..462462d 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -487,7 +487,7 @@ $(document).ready(function() { console.debug(wsMessage); - if (true /*options.is('option_ws_posts_notifications')*/) { + if (options.is('option_ws_posts_notifications')) { console.log('Showing desktop notification'); chrome.runtime.sendMessage({ type: 'showNotification', @@ -559,7 +559,6 @@ $(document).ready(function() { var $post = $(this).parents('.post:first'); var csRf = $(this).siblings('input[name="csrf_token"]').val(); - console.log(csRf); $.ajax({ type: 'POST', @@ -752,6 +751,8 @@ function create_comment_elements(commentData, onCommentCreated) { $commentTemplate.children('.pp-highlight').delay(250).fadeOut(20000); } + // @todo add indentation indicator support + // Hiding $commentTemplate.hide().delay(250).fadeIn(2000); diff --git a/chrome_point_plus/options.html b/chrome_point_plus/options.html index 432694b..36034dc 100644 --- a/chrome_point_plus/options.html +++ b/chrome_point_plus/options.html @@ -269,17 +269,17 @@
- - + +