Sha256: 5f65d7645c795ddeca10949b66cc56776b3ac43cdbcda53554ad0e5249a6a50b

Contents?: true

Size: 528 Bytes

Versions: 3

Compression:

Stored size: 528 Bytes

Contents

//create the modal container
var modal_container = tn.createEl('div');
$('body')[0].appendChild(modal_container);

//put the partial in the modal


<%-
    #Rails.logger.debug("Options: #{modal_options.to_json}")
    modal_container_content =
    escape_javascript(
        spurs_modal  modal_file_or_partial,
                     modal_object,
                     modal_options

    )
%>
modal_container.innerHTML = "<%= modal_container_content %>";

//activate the modal
$(modal_container.children[0]).modal();
window._asd();

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spurs-0.0.6.rc2 app/views/spurs/modals/spawn.js.erb
spurs-0.0.4 app/views/spurs/modals/spawn.js.erb
spurs-0.0.3 app/views/spurs/modals/spawn.js.erb