Skip to content

Commit 9cd45e3

Browse files
committed
don't trigger form submit off of a link that looks like a button; just use the submit button instead
1 parent 1af9946 commit 9cd45e3

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

app/assets/stylesheets/blacklight/_bookmark.css.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ ul.bookmarkTools
1414
{
1515
display:inline;
1616
}
17-
18-
li.refworks form input.submit
19-
{
20-
display:none;
21-
}
2217
}
2318

2419

app/views/catalog/_bookmark_form.html.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
<%= hidden_field_tag "bookmarks[#{index}][document_id]", document.id %>
44
<%= hidden_field_tag "bookmarks[#{index}][title]", h(document[document_show_link_field])%>
55
<% end %>
6-
<%= link_to_function t('blacklight.bookmarks.collection.add.button'), "document.bookmarks.submit()", :class => "btn" %>
7-
<%= submit_tag t('blacklight.bookmarks.collection.add.button'), :class => 'hide' %>
6+
<%= submit_tag t('blacklight.bookmarks.collection.add.button'), :class => 'btn' %>
87
<% end %>
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<%= form_tag "http://www.refworks.com/express/expressimport.asp?vendor=#{application_name}&filter=MARC%20Format&encoding=65001", :name => "refworks", :target => "_blank", :id => "refworks-form" do %>
22

33
<%= hidden_field_tag "ImportData", render_refworks_texts(documents) %>
4-
<%= submit_tag t('blacklight.tools.refworks'), :class => 'submit'%>
5-
<%= link_to_function t('blacklight.tools.refworks'), "document.refworks.submit();", :class => "btn" %>
4+
<%= submit_tag t('blacklight.tools.refworks'), :class => 'submit btn'%>
65
<% end %>
76

0 commit comments

Comments
 (0)