Permalink
Browse files

Added option corners for dialogs

  • Loading branch information...
jaspermdegroot committed Nov 8, 2012
1 parent 07aa6a8 commit 058aeedf9354c8766864ec7b642f86495958816e
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/widgets/dialog.js
View
@@ -13,15 +13,17 @@ $.widget( "mobile.dialog", $.mobile.widget, {
options: {
closeBtnText: "Close",
overlayTheme: "a",
corners: true,
initSelector: ":jqmData(role='dialog')"
},
_create: function() {
var self = this,
$el = this.element,
headerCloseButton = $( "<a href='#' data-" + $.mobile.ns + "icon='delete' data-" + $.mobile.ns + "iconpos='notext'>"+ this.options.closeBtnText + "</a>" ),
cornerClass = !!this.options.corners ? " ui-corner-all" : "",
dialogWrap = $( "<div/>", {
"role" : "dialog",
"class" : "ui-dialog-contain ui-corner-all ui-overlay-shadow"
"class" : "ui-dialog-contain ui-overlay-shadow" + cornerClass
});
$el.addClass( "ui-dialog ui-overlay-" + this.options.overlayTheme );

0 comments on commit 058aeed

Please sign in to comment.