I need to add a Modal popup window, but I can’t figure out how to do this with haml. Now the modal trigger is activated, but it shows a blank screen with a characteristic dimming.
haml:
%a.modal-trigger{:href => 'modal1'} Modal #modal1.modal .modal-content %h4 Modal Header %p Modal text js:
$(document).ready(function(){ // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger').leanModal(); });