Skip to content

Commit

Permalink
Rely on hydra-editor for the multi-field editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jul 17, 2015
1 parent 8845ef0 commit 713743b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 162 deletions.
17 changes: 1 addition & 16 deletions app/assets/javascripts/curation_concerns/curation_concerns.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//= require curation_concerns/manage_repeating_fields
//= require hydra-editor/hydra-editor
//= require curation_concerns/help_modal
//= require curation_concerns/select_works
//= require curation_concerns/link_users
Expand All @@ -13,19 +13,6 @@
// Turbolinks's page change event.
Blacklight.onLoad(function() {
$('abbr').tooltip();

$('body').on('keypress', '.multi-text-field', function(event) {
var $activeField = $(event.target).parents('.field-wrapper'),
$activeFieldControls = $activeField.children('.field-controls'),
$addControl=$activeFieldControls.children('.add'),
$removeControl=$activeFieldControls.children('.remove');
if (event.keyCode == 13) {
event.preventDefault();
$addControl.click()
$removeControl.click()
}
});
$('.multi_value.form-group').manage_fields();
$('.link-users').linkUsers();
$('.link-groups').linkGroups();
$('.proxy-rights').proxyRights();
Expand All @@ -36,8 +23,6 @@ Blacklight.onLoad(function() {
// startDate: '+1d'
// });

$('.remove-member').on('ajax:success', function(){window.location.href = window.location.href});

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

});

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
@import "curation_concerns/modules";
@import "curation_concerns/theme";
@import "curation_concerns/typography";
@import 'hydra-editor/multi_value_fields';
72 changes: 0 additions & 72 deletions app/inputs/multi_value_input.rb

This file was deleted.

0 comments on commit 713743b

Please sign in to comment.