~ubuntu-branches/ubuntu/saucy/dhelp/saucy-proposed

« back to all changes in this revision

Viewing changes to section.rhtml

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-06-04 09:15:52 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100604091552-g4qlkxuihmodxqxk
Tags: 0.6.19ubuntu1
* Merge with debian unstable, remaining changes:
  - debian/control:
    + Packages that Depend/Recommend/Suggest firefox (metapackages) must
      alternatively Depend/Recommend/Suggest abrowser.
  - lib/dhelp.rb:
    + Exit and return zero code if bdb isn't available; this usually
      indicates that dhelp is not configured yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
        function fetch_document(path) {
10
10
            var online = location.href.match(/^http/)
11
11
            if (online) {
12
 
                location.href = '/cgi-bin/dhelp_fetcher?file='+path;
 
12
                location.href = '/cgi-bin/dhelp_fetcher?file='+encodeURIComponent(path);
13
13
                return false;
14
14
            }
15
15
        }
47
47
                    <% doc_supported_formats.each do |format| %>
48
48
                        <% format_index = format.index %>
49
49
                        <% if format_index %>
50
 
                            <a onclick="return fetch_document('<%= uri_escape(format.index) %>')" href="<%= resource_url(format_index) %>"><%= format_name(format.format) %></a>
 
50
                            <a onclick="return fetch_document('<%= format.index %>')" href="<%= resource_url(format_index) %>"><%= format_name(format.format) %></a>
51
51
                        <% else %>
52
52
                            <% $stderr.puts "Invalid format #{format.format} for #{item.document} (#{item.title})" %>
53
53
                        <% end %>