Skip to content

Commit

Permalink
Removed unused javascript/css.
Browse files Browse the repository at this point in the history
Fixes #231
Fixes #232
  • Loading branch information
jcoyne committed Aug 28, 2015
1 parent 62eeffb commit 09c03c2
Show file tree
Hide file tree
Showing 23 changed files with 4 additions and 8,651 deletions.
8 changes: 0 additions & 8 deletions app/assets/javascripts/curation_concerns/application.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
//= require jquery-ui-1.9.2/jquery.ui.widget
//= require jquery-ui-1.9.2/jquery.ui.core
//= require jquery-ui-1.9.2/jquery.ui.menu
//= require jquery-ui-1.9.2/jquery.ui.position
//= require jquery-ui-1.9.2/jquery.ui.autocomplete
//
//= require blacklight/blacklight
//
//= require bootstrap/dropdown
Expand All @@ -13,6 +7,4 @@
//= require bootstrap/popover
//= require bootstrap/tab
//
//= require handlebars
//= require jquery.tokeninput
//= require curation_concerns/curation_concerns
15 changes: 0 additions & 15 deletions app/assets/javascripts/curation_concerns/curation_concerns.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
//= require hydra-editor/hydra-editor
//= require curation_concerns/help_modal
//= require curation_concerns/select_works
//= require curation_concerns/link_users
//= require curation_concerns/link_groups
//= require curation_concerns/proxy_rights
//= require curation_concerns/facet_mine
//= require curation_concerns/proxy_submission
//= require curation_concerns/embargoes


// Initialize plugins and Bootstrap dropdowns on jQuery's ready event as well as
// Turbolinks's page change event.
Blacklight.onLoad(function() {
$('abbr').tooltip();
$('.link-users').linkUsers();
$('.link-groups').linkGroups();
$('.proxy-rights').proxyRights();


// $('#set-access-controls .datepicker').datepicker({
// format: 'yyyy-mm-dd',
// startDate: '+1d'
// });

$("[data-toggle='dropdown']").dropdown();

Expand Down
14 changes: 4 additions & 10 deletions app/assets/javascripts/curation_concerns/facet_mine.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
//= require blacklight/core
(function($) {
var facet_mine_behavior = function() {
// TODO: pull in https://github.com/projecthydra-labs/curate/blob/master/app/views/catalog/_facets.html.erb
$('#aux-search-submit-header').hide();

$('input[name="works"]').on("change", function(e) {
$(this).closest('form').submit();
});

};
};


// TODO when we upgrade blacklight to 4.4+, we can use Blacklight.onLoad()
if (typeof Turbolinks !== "undefined") {
$(document).on('page:load', function() {
facet_mine_behavior();
});
}
$(document).ready(function() {
facet_mine_behavior();
Blacklight.onLoad(function() {
facet_mine_behavior();
});
})(jQuery);
36 changes: 0 additions & 36 deletions app/assets/javascripts/curation_concerns/help_modal.js

This file was deleted.

123 changes: 0 additions & 123 deletions app/assets/javascripts/curation_concerns/link_groups.js.coffee

This file was deleted.

126 changes: 0 additions & 126 deletions app/assets/javascripts/curation_concerns/link_users.js.coffee

This file was deleted.

Loading

0 comments on commit 09c03c2

Please sign in to comment.