app/assets/javascripts/hyrax/batch_edit.js in hyrax-3.6.0 vs app/assets/javascripts/hyrax/batch_edit.js in hyrax-4.0.0.beta1
- old
+ new
@@ -7,11 +7,11 @@
while (i--) {
var Pair = decodeURIComponent(Data[i]).split("=");
var key = Pair[0];
var val = Pair[1];
if (Result[key] != null) {
- if(!$.isArray(Result[key])) Result[key] = [Result[key]];
+ if(!Array.isArray(Result[key])) Result[key] = [Result[key]];
Result[key].push(val);
} else
Result[key] = val;
}
return Result;
@@ -157,12 +157,12 @@
}
});
setTimeout(ajaxManager.runNow(), 100);
}
- $("#permissions_visibility_save").click(runSave);
- $("#permissions_roles_save").click(runSave);
- $(".field-save").click(runSave);
+ $("#permissions_visibility_save").on('click', runSave);
+ $("#permissions_roles_save").on( 'click', runSave);
+ $(".field-save").on('click', runSave);
}
Blacklight.onLoad(function() {
// set up global batch edit options to override the ones in the hydra-batch-edit gem
window.batch_edits_options = { checked_label: "",