new UI - fix: "Hit Enter key should auto submit on dialogs"

This commit is contained in:
Jessica Wang 2010-10-27 14:45:01 -07:00
parent e53ce7de78
commit 15f1874cc1
1 changed files with 8 additions and 8 deletions

View File

@ -780,39 +780,39 @@ function setVmStateInRightPanel(stateValue, $stateField) {
function initDialog(elementId, width1) {
if(width1 == null) {
$("#"+elementId).dialog({
activateDialog($("#"+elementId).dialog({
autoOpen: false,
modal: true,
zIndex: 2000
});
}));
}
else {
$("#"+elementId).dialog({
activateDialog($("#"+elementId).dialog({
width: width1,
autoOpen: false,
modal: true,
zIndex: 2000
});
}));
}
}
function initDialogWithOK(elementId, width1) {
if(width1 == null) {
$("#"+elementId).dialog({
activateDialog($("#"+elementId).dialog({
autoOpen: false,
modal: true,
zIndex: 2000,
buttons: { "OK": function() { $(this).dialog("close"); } }
});
}));
}
else {
$("#"+elementId).dialog({
activateDialog($("#"+elementId).dialog({
width: width1,
autoOpen: false,
modal: true,
zIndex: 2000,
buttons: { "OK": function() { $(this).dialog("close"); } }
});
}));
}
}