Skip to content

Commit

Permalink
chore(code): add jquery-migrate wherever jquery is used
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Aug 31, 2021
1 parent c039604 commit 65572ca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="stylesheet" href="<%= abs_url('css', 'style.css') %>?<%= mtime('css/style.css') %>" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="<%= abs_url('css', 'custom.css') %>?<%= mtime('css/custom.css') %>" type="text/css" media="screen" charset="utf-8" />
<script type="text/javascript" charset="utf-8" src="<%= abs_url('js', 'jquery.js') %>?<%= mtime('js/jquery.js') %>"></script>
<script type="text/javascript" charset="utf-8" src="<%= abs_url('js', 'jquery-migrate.js') %>?<%= mtime('js/jquery-migrate.js') %>"></script>
<script type="text/javascript" charset="utf-8">
function checkPage(process) {
$.ajax({cache: false, url: "<%= router.request.path %>" + (process ? "?process=true" : ""),
Expand Down
2 changes: 1 addition & 1 deletion templates/default/fulldoc/html/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def stylesheets_full_list
# searchable full lists, e.g., Class List, Method List, File List.
# @since 0.7.0
def javascripts_full_list
%w(js/jquery.js js/full_list.js)
%w(js/jquery.js js/jquery-migrate.js js/full_list.js)
end

def menu_lists
Expand Down
2 changes: 1 addition & 1 deletion templates/default/layout/html/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def diskfile
# @return [Array<String>] core javascript files for layout
# @since 0.7.0
def javascripts
%w(js/jquery.js js/app.js)
%w(js/jquery.js js/jquery-migrate.js js/app.js)
end

# @return [Array<String>] core stylesheets for the layout
Expand Down
2 changes: 1 addition & 1 deletion templates/guide/fulldoc/html/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class << options.serializer
end

def generate_assets
%w(js/jquery.js js/app.js css/style.css css/common.css).each do |file|
%w(js/jquery.js js/jquery-migrate.js js/app.js css/style.css css/common.css).each do |file|
asset(file, file(file, true))
end
end
Expand Down

0 comments on commit 65572ca

Please sign in to comment.