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

View File

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