Actions
Bug #10153
closedMissing JS File during host group edit
Description
JS file not loaded¶
Error during opening the Activation Keys Tab
Error Message:
Uncaught ReferenceError: update_interface_table is not defined
Workaround to get it working:¶
Edit the base layout and add the line to load the javascript file which is missing:
vim app/views/layouts/base.html.erb
<%= javascript_include_tag 'host_edit_interfaces', "data-turbolinks-track" => true %>
Example:
<!DOCTYPE html> <!--[if lt IE 7]> <html lang="<%= I18n.locale %>" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html lang="<%= I18n.locale %>" class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html lang="<%= I18n.locale %>" class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html lang="<%= I18n.locale %>" class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title><%= h(yield(:title) || "Foreman") %></title> <meta name="description" content=""> <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/> <%= favicon_link_tag "favicon.ico"%> <%= stylesheet_link_tag 'application', "data-turbolinks-track" => true %> <%= yield(:stylesheets) %> <%= csrf_meta_tags %> <%= javascript_include_tag 'application', "data-turbolinks-track" => true %> <%= javascript_include_tag 'host_edit_interfaces', "data-turbolinks-track" => true %> <%= yield(:javascripts) %>
Better solution would be to have an application.css file which includes the missing host_edit_interfaces.js from the katello-installer.
Seems the rake assets:precompile doesn't include this file.
Tested on: Version 1.8.0-RC3
Files
Actions