Skip to content

Commit

Permalink
update selector for bookmark count to handle any data-role bookmark-c…
Browse files Browse the repository at this point in the history
…ounter
  • Loading branch information
mejackreed committed Sep 4, 2014
1 parent cb2d0b1 commit d704e97
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/assets/javascripts/blacklight/bookmark_toggle.js
Expand Up @@ -6,12 +6,12 @@
$(Blacklight.do_bookmark_toggle_behavior.selector).bl_checkbox_submit({
//css_class is added to elements added, plus used for id base
css_class: "toggle_bookmark",
success: function(checked, response) {
if (response.bookmarks) {
$('#bookmarks_nav span[data-role=bookmark-counter]').text(response.bookmarks.count);
}
}
});
success: function(checked, response) {
if (response.bookmarks) {
$('[data-role=bookmark-counter]').text(response.bookmarks.count);
}
}
});
};
Blacklight.do_bookmark_toggle_behavior.selector = "form.bookmark_toggle";

Expand Down

0 comments on commit d704e97

Please sign in to comment.