Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymal committed Jun 28, 2024
1 parent 9bfb656 commit 4095293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions frontend/src/legacy/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ var story = {
_contributorsSendEventBinded: null,
_contributorsChangeEventBinded: null,
_hashChangeEventBinded: null,
_moreTagsLinks: [],

_lsFormattingKey: 'formatting',
_preview: {
Expand Down Expand Up @@ -1075,7 +1074,7 @@ var story = {
},

/**
* Обновляет указанный параметр форматированияи, применяет форматирование
* Обновляет указанный параметр форматирования, применяет форматирование
* ко всем js-story-formatting и сохраняет это всё дело в localStorage.
*/
setFormattingProperty: function(name, value) {
Expand Down
4 changes: 2 additions & 2 deletions mini_fiction/templates/includes/stories.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ <h3 class="story-title">
</p>
<p class="story-summary">{{ story.summary|striptags }}</p>
{% if (stories_detail_view or current_user.detail_view) and story.published_chapters_count > 1 %}
<button class="btn btn-collapse btn-small" data-toggle="collapse" data-target="#story-{{ story.id }}">{{ ngettext("Show %(num)d chapter", "Show %(num)d chapters", story.published_chapters_count) }}</button>
<div id="story-{{ story.id }}" class="collapse">
<button class="btn btn-collapse btn-small" data-toggle="collapse" data-target="#story_{{ story.id }}_chapters">{{ ngettext("Show %(num)d chapter", "Show %(num)d chapters", story.published_chapters_count) }}</button>
<div id="story_{{ story.id }}_chapters" class="collapse">
<ul class="chapters-list">
{%- for chapter in story.bl.select_accessible_chapters(current_user)|sort(attribute='order') %}
<li>
Expand Down

0 comments on commit 4095293

Please sign in to comment.