templates/default/fulldoc/html/frames.erb in deg-yard-0.8.7.1 vs templates/default/fulldoc/html/frames.erb in deg-yard-0.8.7.3

- old
+ new

@@ -6,17 +6,15 @@ <meta http-equiv="Content-Type" content="text/html; charset=<%= charset %>"/> <title><%= options.title %></title> </head> <script type="text/javascript" charset="utf-8"> window.onload = function() { - var match = window.location.hash.match(/^#!(.+)/); - var name = '<%= url_for_main %>'; - if (match) { - name = unescape(match[1]); - } + var match = unescape(window.location.hash).match(/^#!(.+)/); + var name = match ? match[1] : '<%= url_for_main %>'; + name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, ''); document.writeln('<frameset cols="20%,*">' + '<frame name="list" src="<%= url_for_list('class') %>" />' + - '<frame name="main" src="' + name + '" />' + + '<frame name="main" src="' + escape(name) + '" />' + '</frameset>'); } </script> <noscript> <frameset cols="20%,*">