From d79f1aac96058771113f8a9f6ff96533b0779dd3 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 20 Dec 2016 02:31:05 -0600 Subject: [PATCH] Move stupidtable.js into application.js. Fixes this javascript error: Uncaught TypeError: $(...).stupidtable is not a function on these pages: * http://safebooru.donmai.us/reports/user_promotions * http://safebooru.donmai.us/reports/contributors * http://safebooru.donmai.us/reports/janitor_trials ...due to stupidtable.js not loading. --- app/assets/javascripts/application.js | 1 + app/views/reports/contributors.html.erb | 3 +-- app/views/reports/janitor_trials.html.erb | 3 +-- app/views/reports/user_promotions.html.erb | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 5e9a4239e..c8d3642a3 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -5,6 +5,7 @@ //= require jquery-ui-autocomplete-custom.js //= require jquery.storageapi.js //= require ugoira_player.js +//= require stupidtable.js //= require rails.js //= require common.js //= require_tree . diff --git a/app/views/reports/contributors.html.erb b/app/views/reports/contributors.html.erb index 104e12ece..e1e777227 100644 --- a/app/views/reports/contributors.html.erb +++ b/app/views/reports/contributors.html.erb @@ -36,7 +36,6 @@ <% end %> <%= content_for(:html_header) do %> - <%= javascript_include_tag "stupidtable" %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/reports/janitor_trials.html.erb b/app/views/reports/janitor_trials.html.erb index f86fcf4a0..ef8526064 100644 --- a/app/views/reports/janitor_trials.html.erb +++ b/app/views/reports/janitor_trials.html.erb @@ -47,7 +47,6 @@ <% end %> <%= content_for(:html_header) do %> - <%= javascript_include_tag "stupidtable" %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/reports/user_promotions.html.erb b/app/views/reports/user_promotions.html.erb index 5245f98c5..af7d15f0c 100644 --- a/app/views/reports/user_promotions.html.erb +++ b/app/views/reports/user_promotions.html.erb @@ -40,7 +40,6 @@ <% end %> <%= content_for(:html_header) do %> - <%= javascript_include_tag "stupidtable" %> -<% end %> \ No newline at end of file +<% end %>