Sha256: 7c852aa3a71d8de1bb0a2ceeff4635bed1935c6423c32d676b00bb3dc842f4f7
Contents?: true
Size: 892 Bytes
Versions: 5454
Compression:
Stored size: 892 Bytes
Contents
<div id='pageblock_<%= @block.id %>_value'></div> <% content_for :caboose_js do %> <%= javascript_include_tag "caboose/model/all" %> <script type='text/javascript'> var modal = false; $(window).load(function() { modal = new CabooseModal(800); }); $(document).ready(function() { m = new ModelBinder({ name: 'PageBlock', id: <%= @block.id %>, update_url: '/admin/pages/<%= @page.id %>/blocks/<%= @block.id %>', authenticity_token: '<%= form_authenticity_token %>', attributes: [{ name: 'value', nice_name: 'Content', type: 'text', value: <%= raw Caboose.json(@block.value) %>, width: 800, fixed_placeholder: false, after_update: function() { parent.controller.render_blocks(); modal.close(); }, after_cancel: function() { parent.controller.render_blocks(); modal.close(); } }] }); }); </script> <% end %>
Version data entries
5,454 entries across 909 versions & 1 rubygems