New options for WebSocket post processing.

This commit is contained in:
Alexey Skobkin 2015-01-15 15:19:12 +04:00
parent 6d6a9fa3d6
commit 2a5e9da2d8
4 changed files with 22 additions and 21 deletions

View File

@ -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 ▼"

View File

@ -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": "Увеличить шрифт ▼"

View File

@ -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);

View File

@ -269,17 +269,17 @@
</div>
<div class="option-node">
<input type="checkbox" name="option-ws-feeds" id="option-ws-feeds" disabled>
<label for="option-ws-feeds" data-i18n="option_ws_feeds"></label>
<input type="checkbox" name="option-ws-posts" id="option-ws-posts">
<label for="option-ws-posts" data-i18n="option_ws_posts"></label>
<label class="option-node">
<input type="checkbox" name="option-ws-feeds-subscriptions">
<span data-i18n="option_ws_feeds_subscriptions"></span>
<input type="checkbox" name="option-ws-posts-add" disabled>
<span data-i18n="option_ws_posts_add"></span>
</label>
<label class="option-node">
<input type="checkbox" name="option-ws-feeds-blogs">
<span data-i18n="option_ws_feeds_blogs"></span>
<input type="checkbox" name="option-ws-posts-notifications">
<span data-i18n="option_ws_posts_notifications"></span>
</label>
</div>
</div>