Skip to content

Commit

Permalink
Avoid using javascript keywords as variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Mar 12, 2019
1 parent c206dfa commit ff01f08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/spotlight/catalog_edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ Spotlight.onLoad(function() {
//css_class is added to elements added, plus used for id base
css_class: "toggle_visibility",
//success is called at the end of the ajax success callback
success: function (public){
success: function (isPublic){
// We store the selector of the label to toggle in a data attribute in the form
var docTarget = $($(this).data("label-toggle-target"));
if ( public ) {
if ( isPublic ) {
docTarget.removeClass("blacklight-private");
} else {
docTarget.addClass("blacklight-private");
Expand Down

0 comments on commit ff01f08

Please sign in to comment.