app/javascript/blacklight/modal.js in blacklight-7.0.0.rc1 vs app/javascript/blacklight/modal.js in blacklight-7.0.0.rc2

- old
+ new

@@ -1,7 +1,5 @@ -//= require blacklight/core - /* The blacklight modal plugin can display some interactions inside a Bootstrap modal window, including some multi-page interactions. It supports unobtrusive Javascript, where a link or form that would have caused @@ -117,10 +115,10 @@ // does it have a data- selector for container? // important we don't execute script tags, we shouldn't. // code modelled off of JQuery ajax.load. https://github.com/jquery/jquery/blob/master/src/ajax/load.js?source=c#L62 var container = $('<div>'). append( jQuery.parseHTML(contents) ).find( Blacklight.modal.containerSelector ).first(); - if (container.size() !== 0) { + if (container.length !== 0) { contents = container.html(); } $(Blacklight.modal.modalSelector).find('.modal-content').html(contents);