Sha256: 9ddad9653bca7421201c45bfefd4bfc17b1d515986f0572644c3bea06ff95275
Contents?: true
Size: 718 Bytes
Versions: 21
Compression:
Stored size: 718 Bytes
Contents
module RailsConnector # A helper to access the preview time machine. module TimeMachineHelper # Renders a link to open the time machine. def time_machine_link(content) if Configuration.enabled?(:time_machine) && Configuration.editor_interface_enabled? (<<-EOF).html_safe #{link_to_function content, "window.open('#{time_machine_url :action => 'index'}', 'time_machine', 'height=350,location=no,menubar=no,status=no,toolbar=no,width=500')"} <script type="text/javascript"> // <!-- function sendRequest(url) { jQuery.getScript(url); } // --> </script> EOF end end end end
Version data entries
21 entries across 21 versions & 1 rubygems