Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed broken links (#5049) #5254

Merged
merged 1 commit into from
Mar 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions app/views/like/_like.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,23 @@
<hr style='clear:both;' />

<div>
<p><a href='#' onClick='print_linkless()'><i class='fa fa-print'></i> Print without page links</a></p>
<p><a href='#' onClick='print_three_column();'><i class='fa fa-print'></i> Print in 3-column layout</a></p>
<p><a id='print-command-no-links'><i class='fa fa-print'></i> Print without page links</a></p>
<p><a id='print-command-3-col'><i class='fa fa-print'></i> Print in 3-column layout</a></p>
</div>

"><span class="caret"></span></li>

">
<span class="caret"></span></li>
</ul>

<style type="text/css">
/*Styling the links to remove underline on hover and setting pointer as cursor*/
#print-command-3-col , #print-command-no-links {
text-decoration : none;
cursor : pointer;
}
</style>

<script>

function print_three_column() {
Expand All @@ -89,6 +100,10 @@
$('body').css('column-count', 1)
.css('column-gap', 0);
}
// Event listner on CLICK on links
$(document).on("click", "#print-command-3-col",print_three_column);
$(document).on("click", "#print-command-no-links",print_linkless);

jQuery(document).ready(function() {

// 304 cached response yields no data to insert, which is not useful
Expand Down