#102 done. Move /all page link to left menu.

This commit is contained in:
Alexey Skobkin 2016-05-09 02:42:51 +03:00
parent 7715c43ba1
commit 1df716d694
4 changed files with 18 additions and 1 deletions

View file

@ -174,6 +174,9 @@
"option_other_comments_count_refresh_title":{
"message": "Page title"
},
"option_other_move_all_to_menu":{
"message": "Move \"All posts\" to left menu"
},
"option_other_post_draft_save":{
"message": "Save post drafts"
},

View file

@ -174,6 +174,9 @@
"option_other_comments_count_refresh_title":{
"message": "В заголовке страницы"
},
"option_other_move_all_to_menu":{
"message": "Переместить \"Всё подряд\" в левое меню"
},
"option_other_post_draft_save":{
"message": "Сохранение черновика поста"
},

View file

@ -41,8 +41,14 @@ function PointPlus(ppVersion) {
try {
console.debug('Options loaded: %O', options.getOptions());
} catch(e){}
create_tag_system();
// Move "all posts" to left menu
if (options.is('option_other_move_all_to_menu')) {
$('div.secret a').insertAfter('a#menu-recent').css('background-image','url("img/icon-private-inactive.png")');
}
// Embedding
if (options.is('option_embedding')) {
// Load pictures from Booru, Tumblr and some other sites

View file

@ -227,6 +227,11 @@
<span data-i18n="option_other_comments_user_system"></span>
</label>
<label class="option-node">
<input type="checkbox" name="option-other-move-all-to-menu">
<span data-i18n="option_other_move_all_to_menu"></span>
</label>
<label class="option-node">
<input type="checkbox" name="option-other-post-draft-save">
<span data-i18n="option_other_post_draft_save"></span>