#940 "Close" and "Reopen" buttons were not working on IE (due to extra commas at the end of JS lists)

SVN:2.0.2[3229]
This commit is contained in:
Denis Flaven
2014-06-27 11:04:39 +00:00
parent 72cc38aa4b
commit 1ccb78276a

View File

@@ -1164,9 +1164,17 @@ function MakeStimulusForm(WebPage $oP, $oObj, $sStimulusCode, $aEditAtt)
function RunStimulusDialog(sStimulusCode, sTitle, sOkButtonLabel)
{
var sWidth = 'auto';
if (sStimulusCode == 'ev_reopen')
{
// Avoid having a dialog spanning the complete width of the window
// just because it contains a CaseLog entry
sWidth = '80%';
}
$('#'+sStimulusCode+'_dialog').dialog({
height: 'auto',
width: 'auto',
width: sWidth,
modal: true,
title: sTitle,
buttons: [
@@ -1175,8 +1183,8 @@ function RunStimulusDialog(sStimulusCode, sTitle, sOkButtonLabel)
} },
{ text: "$sCancelButtonLabel", click: function() {
$(this).dialog( "close" );
} },
],
} }
]
});
// Start the validation
CheckFields(sStimulusCode+'_form', false);