CC-4479: Buttons in dialog windows are not styled

-done
This commit is contained in:
denise 2012-09-18 17:22:24 -04:00
parent 39e1bd5271
commit 1d699fe0b8
2 changed files with 33 additions and 13 deletions

View file

@ -164,9 +164,15 @@ function buildScheduleDialog (json) {
draggable: true,
modal: true,
close: closeDialog,
buttons: {"Ok": function() {
$(this).dialog("close");
}}
buttons: [
{
text: "Ok",
"class": "btn",
click: function() {
$(this).dialog("close");
}
}
]
});
//set the start end times so the builder datatables knows its time range.
@ -207,9 +213,15 @@ function buildContentDialog (json){
height: height,
modal: true,
close: closeDialog,
buttons: {"Ok": function() {
dialog.remove();
}}
buttons: [
{
text: "Ok",
"class": "btn",
click: function() {
dialog.remove();
}
}
]
});
dialog.dialog('open');