Sha256: a53de00e6bedbe0eff0d371297cf629fe043adf7771f11d19a3312ffeb1fb569
Contents?: true
Size: 752 Bytes
Versions: 24
Compression:
Stored size: 752 Bytes
Contents
module RailsConnector # A helper to access the preview time machine. # @api public module TimeMachineHelper # Renders a link to open the time machine. # @api public 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
24 entries across 24 versions & 1 rubygems