mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
#940 "Close" and "Reopen" buttons were not working on IE (due to extra commas at the end of JS lists)
SVN:trunk[3228]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user