Skip to content

Commit

Permalink
🐛 Fix bugs with showing notebooks list
Browse files Browse the repository at this point in the history
Fix a bug which used to appear when using a locale different from English.
  • Loading branch information
wwebfor committed Dec 4, 2015
1 parent 0cadb9e commit 2859f33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/scripts/apps/notes/form/templates/notebooks.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<option value="0">
 {{i18n('Select notebook')}}
</option>
<optgroup label="{{i18n('Action')}}">
<optgroup id="editor--notebooks--group" label="{{i18n('Action')}}">
<option class="addNotebook" value="">
 {{i18n('notebooks.add')}}
</option>
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/apps/notes/form/views/notebooks.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright (C) 2015 Laverna project Authors.
*
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
Expand All @@ -26,7 +26,7 @@ define([
template: _.template(Tmpl),

childView : ItemView,
childViewContainer : 'optgroup[label="Select"]',
childViewContainer : '#editor--notebooks--group',

ui: {
notebookId : '[name="notebookId"]'
Expand Down

0 comments on commit 2859f33

Please sign in to comment.