Skip to content

Commit

Permalink
Merge pull request #3174 from Squeegy/master
Browse files Browse the repository at this point in the history
Prevent active admin from clobbering all jQuery UI dialog close buttons
  • Loading branch information
seanlinsley committed May 28, 2014
2 parents b6fb717 + 8818bc8 commit ebf2ccf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -28,6 +28,7 @@ ActiveAdmin.modal_dialog = (message, inputs, callback)->
html += "</ul></form>"
$(html).appendTo('body').dialog
modal: true
dialogClass: 'active_admin_dialog'
buttons:
OK: ->
callback $(@).serializeObject()
Expand Down
Expand Up @@ -15,7 +15,6 @@
@include section-header;
span { font-size: 1.1em }
}
.ui-dialog-titlebar-close { display: none }

ul { list-style-type: none }
li { margin: 10px 0 }
Expand All @@ -29,3 +28,7 @@
&:last-child { @include light-button } // Cancel
}
}

.active_admin_dialog.ui-dialog {
.ui-dialog-titlebar-close { display: none }
}

0 comments on commit ebf2ccf

Please sign in to comment.