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');

View File

@ -63,14 +63,22 @@
$.extend(config, {
autoOpen: false,
modal: true,
buttons: {
"Cancel": function() {
browserDlg.dialog("close");
buttons: [
{
text: "Cancel",
"class": "btn",
click: function() {
browserDlg.dialog("close");
}
},
"Open": function() {
doneOk();
},
},
{
text: "Open",
"class": "btn",
click: function() {
doneOk();
}
}
],
resize: function(event, ui) {
recalculateSize(event, ui);
},