We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb2d0b1 + d704e97 commit 8a7fdc5Copy full SHA for 8a7fdc5
app/assets/javascripts/blacklight/bookmark_toggle.js
@@ -6,12 +6,12 @@
6
$(Blacklight.do_bookmark_toggle_behavior.selector).bl_checkbox_submit({
7
//css_class is added to elements added, plus used for id base
8
css_class: "toggle_bookmark",
9
- success: function(checked, response) {
10
- if (response.bookmarks) {
11
- $('#bookmarks_nav span[data-role=bookmark-counter]').text(response.bookmarks.count);
12
- }
13
14
- });
+ success: function(checked, response) {
+ if (response.bookmarks) {
+ $('[data-role=bookmark-counter]').text(response.bookmarks.count);
+ }
+ });
15
};
16
Blacklight.do_bookmark_toggle_behavior.selector = "form.bookmark_toggle";
17
0 commit comments