From 1ccb78276a9f2de334117bf9839604f050e8e141 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Fri, 27 Jun 2014 11:04:39 +0000 Subject: [PATCH] #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] --- portal/index.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/portal/index.php b/portal/index.php index 16d411797..e6acf520e 100644 --- a/portal/index.php +++ b/portal/index.php @@ -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);