Skip to content
This repository was archived by the owner on Mar 11, 2020. It is now read-only.

Commit bb1a00c

Browse files
committed
Disable turbolink for play video and courses
1 parent 12ccbbc commit bb1a00c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/views/courses/edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<%= f.submit "Save", class: "btn btn-primary"%>
1818
<%= link_to "Delete", @course, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary"%>
1919
<%= link_to "Clone", clone_course_courses_path(:id => "#{@course.id}"), class: "btn btn-primary", 'data-no-turbolink' => true %>
20-
<%= link_to "View", course_report_path(@course), class: "btn btn-primary" , :onclick=>"window.open(this.href,'video_player', 'height=700, width=1000');return false;" %>
20+
<%= link_to "View", course_report_path(@course), class: "btn btn-primary" , 'data-no-turbolink' => true, :onclick=>"window.open(this.href,'video_player', 'height=700, width=1000');return false;" %>
2121
<%= f.submit "Send List", class: "btn btn-primary"%>
2222
<%= link_to "Archive", archive_courses_path(:course_ids => ["#{@course.id}"]), class: "btn btn-primary" if !@course.course.include?('ARCHIVE')%>
2323
<%= link_to "UnArchive", unarchive_courses_path(:course_ids => ["#{@course.id}"]), class: "btn btn-primary" if @course.course.include?('ARCHIVE')%>

app/views/media/edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<%= bootstrap_form_for @media, :required=>true do |f| %>
1010
<%= render :partial => 'media_form' , :locals => {:f => f}%>
1111
<%= f.primary "Save"%>
12-
<%= link_to "Play File", medium_path(@media), class: "btn btn-primary", :onclick=>"window.open(this.href,'video_player', 'height=600, width=600');return false;" %>
12+
<%= link_to "Play File", medium_path(@media), class: "btn btn-primary", 'data-no-turbolink' => true , :onclick=>"window.open(this.href,'video_player', 'height=600, width=600');return false;" %>
1313
<%= link_to "Delete", @media, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary"%>
1414
<%= link_to "Add to Course Reserve List", add_to_course_courses_path(:course, :media_ids => ["#{@media.id}"]), :method=> :post, class: "btn btn-primary"%>
1515
<%= link_to "Return to Search Results", search_media_path(:search => session[:search]), class: "btn btn-primary"%>

0 commit comments

Comments
 (0)