diff --git a/app/assets/javascripts/admin_font_select.js b/app/assets/javascripts/admin_font_select.js deleted file mode 100644 index 26abe89fa..000000000 --- a/app/assets/javascripts/admin_font_select.js +++ /dev/null @@ -1,38 +0,0 @@ -Blacklight.onLoad(function () { - if ($("#admin_appearance_body_font").length > 0) { - $("#admin_appearance_body_font").fontselect({ lookahead: 20 }); - $("#admin_appearance_headline_font").fontselect({ lookahead: 20 }); - } -}); - -$("div.defaultable-fonts a.restore-default-font").click(function (e) { - e.preventDefault(); - var defaultTarget = $(e.target).data("default-target"); - var input = $("input[name='admin_appearance[" + defaultTarget + "]']"); - var defaultValue = input.data("default-value").replace(";", ""); - var inputDisplay = $("div[class$='" + defaultTarget + "']").find( - "div.font-select span" - ); - - input.val(defaultValue); - inputDisplay.css("font-family", defaultValue); - inputDisplay.text(defaultValue); -}); - -$(".panel-footer a.restore-all-default-fonts").click(function (e) { - e.preventDefault(); - - var allFontInputs = $("input[name*='font']"); - - allFontInputs.each(function () { - var thisTarget = $(this).attr("id").replace("admin_appearance_", ""); - var defaultValue = $(this).data("default-value").replace(";", ""); - var inputDisplay = $("div[class$='" + thisTarget + "']").find( - "div.font-select span" - ); - - $(this).val(defaultValue); - inputDisplay.css("font-family", defaultValue); - inputDisplay.text(defaultValue); - }); -}); diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index c2e416d37..fa87ebf62 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -25,7 +25,6 @@ //= require tether // Required by Blacklight //= require blacklight/blacklight -//= require admin_font_select //= require admin_color_select //= require blacklight_advanced_search