Sha256: 62a315cf58911fcf3a5140203b95345dc07767be2f3a2170fe1a19d927fb2586
Contents?: true
Size: 581 Bytes
Versions: 15
Compression:
Stored size: 581 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
15 entries across 15 versions & 1 rubygems