Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused addField code #8261

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 0 additions & 102 deletions openlibrary/plugins/openlibrary/js/add_new_field.js

This file was deleted.

3 changes: 0 additions & 3 deletions openlibrary/plugins/openlibrary/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import 'jquery-colorbox';
// jquery.form#2.36 not on npm, no longer getting worked on
import '../../../../vendor/js/jquery-form/jquery.form.js';
import autocompleteInit from './autocomplete';
// Used only by the openlibrary/templates/books/edit/addfield.html template
import addNewFieldInit from './add_new_field';
import automaticInit from './automatic';
import bookReaderInit from './bookreader_direct';
import { ungettext, ugettext, sprintf } from './i18n';
Expand Down Expand Up @@ -107,7 +105,6 @@ jQuery(function () {

initValidate($);
autocompleteInit($);
addNewFieldInit($);
automaticInit($);
// wmd editor
if ($markdownTextAreas.length) {
Expand Down
3 changes: 0 additions & 3 deletions openlibrary/templates/books/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,4 @@ <h3 class="editFormBookAuthors">
$:macros.EditButtons(comment=work.comment_)

</form>
$if edition:
$:render_template("books/edit/addfield", edition)

</div>
177 changes: 0 additions & 177 deletions openlibrary/templates/books/edit/addfield.html

This file was deleted.

12 changes: 0 additions & 12 deletions static/css/legacy.less
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,6 @@ div.narrow {

div.pop {
// openlibrary/templates/covers/add.html
// openlibrary/templates/books/edit/addfield.html
&Alert {
display: none;
width: 550px;
Expand All @@ -1640,17 +1639,6 @@ div.pop {
color: @red;
text-align: center;
}
// openlibrary/templates/books/edit/addfield.html
&Notify {
font-size: .6875em;
font-family: @lucida_sans_serif-1;
margin: 10px 20px;
}
}

// openlibrary/templates/books/edit/addfield.html
div.addfield {
margin: 10px 20px;
}

// openlibrary/templates/type/edition/view.html
Expand Down