Skip to content

Commit

Permalink
Fixed issue lsegal#744 by making the 'frames' link have a relative UR…
Browse files Browse the repository at this point in the history
…L instead of an absolute one.
  • Loading branch information
DavidEGrayson committed Mar 2, 2014
1 parent 2e1817d commit 7a761d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/default/layout/html/script_setup.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script type="text/javascript" charset="utf-8">
hasFrames = window.top.frames.main ? true : false;
relpath = '<%= u = url_for(''); u + (u != '' ? '/' : '') %>';
framesUrl = "<%= url_for_frameset %>#!" + escape(window.location.href);
framesUrl = "<%= url_for_frameset %>#!<%= url_for(@file || @object, nil, false) %>";
</script>

0 comments on commit 7a761d5

Please sign in to comment.