History

Encode ellipsis character

Closes #29

Thibaut committed 12 years ago

Commit ba036841 parent 3cd53734 files · +5 −5Browse files

Showing the changes to assets/javascripts (3 of 4 files). Show all

Unified · Split

3 files
  1. assets/javascripts/templates/pages/help_tmpl.coffee +1 −1
  2. assets/javascripts/templates/sidebar_tmpl.coffee +1 −1
  3. assets/javascripts/views/sidebar/doc_picker.coffee +2 −2
assets/javascripts/templates/pages/help_tmpl.coffee+1−1
@@ -32,7 +32,7 @@ app.templates.helpPage = """ · 31 unmodified lines
32 DevDocs supports OpenSearch, meaning it can easily be installed as a search engine on most web browsers.32 DevDocs supports OpenSearch, meaning it can easily be installed as a search engine on most web browsers.
33 <ul>33 <ul>
34 <li>On Chrome, the setup is done automatically. Simply press <code class="_label">Tab</code> when devdocs.io is autocompleted34 <li>On Chrome, the setup is done automatically. Simply press <code class="_label">Tab</code> when devdocs.io is autocompleted
35 in the omnibox (to set a custom keyword, click <em>Manage search engines…</em> in Chrome's settings).35 in the omnibox (to set a custom keyword, click <em>Manage search engines\u2026</em> in Chrome's settings).
36 <li>On Firefox, open the search engine list (icon in the search bar) and select <em>Add "DevDocs Search"</em>.36 <li>On Firefox, open the search engine list (icon in the search bar) and select <em>Add "DevDocs Search"</em>.
37 DevDocs is now available in the search bar. You can also search from the location bar by following37 DevDocs is now available in the search bar. You can also search from the location bar by following
38 <a href="https://support.mozilla.org/en-US/kb/search-bar-easily-choose-your-search-engine#w_keywords">these instructions</a>.38 <a href="https://support.mozilla.org/en-US/kb/search-bar-easily-choose-your-search-engine#w_keywords">these instructions</a>.
assets/javascripts/templates/sidebar_tmpl.coffee+1−1
@@ -18,7 +18,7 @@ templates.sidebarResult = (entry) -> · 17 unmodified lines
18 """<a href="#{entry.fullPath()}" class="_list-item _list-hover _list-result _icon-#{entry.doc.slug}"><span class="_list-reveal" data-reset-list title="Reveal in list"></span>#{$.escape entry.name}</a>"""18 """<a href="#{entry.fullPath()}" class="_list-item _list-hover _list-result _icon-#{entry.doc.slug}"><span class="_list-reveal" data-reset-list title="Reveal in list"></span>#{$.escape entry.name}</a>"""
19 19
20templates.sidebarPageLink = (count) ->20templates.sidebarPageLink = (count) ->
21 """<span class="_list-item _list-pagelink">Show more… (#{count})</span>"""21 """<span class="_list-item _list-pagelink">Show more\u2026 (#{count})</span>"""
22 22
23templates.sidebarLabel = (doc, options = {}) ->23templates.sidebarLabel = (doc, options = {}) ->
24 label = """<label class="_list-item _list-label _icon-#{doc.slug}"""24 label = """<label class="_list-item _list-label _icon-#{doc.slug}"""
assets/javascripts/views/sidebar/doc_picker.coffee+2−2
@@ -44,7 +44,7 @@ class app.views.DocPicker extends app.View · 43 unmodified lines
44 unless @saving44 unless @saving
45 @saving = true45 @saving = true
46 app.settings.setDocs @getSelectedDocs()46 app.settings.setDocs @getSelectedDocs()
47 @saveLink.textContent = if app.appCache then 'Downloading…' else 'Saving…'47 @saveLink.textContent = if app.appCache then 'Downloading\u2026' else 'Saving\u2026'
48 app.reload()48 app.reload()
49 return49 return
50 50
@@ -65,5 +65,5 @@ class app.views.DocPicker extends app.View · 14 unmodified lines
65 onAppCacheProgress: (event) =>65 onAppCacheProgress: (event) =>
66 if event.lengthComputable66 if event.lengthComputable
67 percentage = Math.round event.loaded * 100 / event.total67 percentage = Math.round event.loaded * 100 / event.total
68 @saveLink.textContent = "Downloading… (#{percentage}%)"68 @saveLink.textContent = "Downloading\u2026 (#{percentage}%)"
69 return69 return