Sha256: 73199170aaaf3804ace45f043b9cd3882142297bda231d0e487c705a8aa137ab
Contents?: true
Size: 585 Bytes
Versions: 32
Compression:
Stored size: 585 Bytes
Contents
var modal = $("#ajax-modal"); modal.html("<%%= j render(template: '<%= model_name_pluralize_underscored %>/new', formats: [:html]) %>"); showModal(modal.attr("id")); var submitButton = { text:"<%%=j l(:button_create) -%>", title:"<%%=j l(:button_create) -%>", click: function() {$(this).find('form').submit()}, 'class': 'button-positive' }; var closeButton = { text: "<%%=j l(:button_close) -%>", title: "<%%=j l(:button_close) -%>", click: function() {$(this).dialog('close');}, 'class': 'button' }; modal.dialog('option', { buttons: [closeButton, submitButton] });
Version data entries
32 entries across 32 versions & 1 rubygems