Skip to content

Commit

Permalink
Fix path to jQuery when loading it separately for remote consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Jul 23, 2018
1 parent 9599f05 commit 0d95711
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/remote_console.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
= stylesheet_link_tag 'application'
= stylesheet_link_tag '/custom.css'
-# Load the required JS based on the console type
= javascript_include_tag 'jquery', "remote_consoles/#{@console[:type]}", 'remote_console'
= javascript_include_tag 'jquery/dist/jquery.js', "remote_consoles/#{@console[:type]}", 'remote_console'
%body
#remote-console{'data-url' => @console[:url], 'data-secret' => @console[:secret]}
= render :partial => 'shared/remote_console_footer', :layout => false, :locals => { :console_type => @console[:type].upcase }
2 changes: 1 addition & 1 deletion app/views/vm_common/console_vmrc.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%html{:lang => I18n.locale.to_s.sub('-', '_')}
%head
= favicon_link_tag
= javascript_include_tag 'jquery'
= javascript_include_tag 'jquery/dist/jquery.js'
:javascript
// INITIALIZE
$(document).ready(function(){
Expand Down
2 changes: 1 addition & 1 deletion app/views/vm_common/console_webmks.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
= _('%{product_name} WebMKS Remote Console') % {:product_name => Vmdb::Appliance.PRODUCT_NAME}
= favicon_link_tag
= stylesheet_link_tag '/webmks/css/wmks-all.css', 'application'
= javascript_include_tag 'jquery', 'bower_components/jquery-ui/jquery-ui.js', '/webmks/wmks.min.js', 'remote_console'
= javascript_include_tag 'jquery/dist/jquery.js', 'bower_components/jquery-ui/jquery-ui.js', '/webmks/wmks.min.js', 'remote_console'
:javascript
$(function () {
var mksOpts = {};
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Rails.application.config.assets.precompile += %w(
bower_components/codemirror/modes/*.js
bower_components/codemirror/themes/*.css
jquery.js
jquery/dist/jquery.js
bower_components/jquery-ui/jquery-ui.js

jquery_overrides.js
Expand Down

0 comments on commit 0d95711

Please sign in to comment.