Changeset 8b580b in indico


Ignore:
Timestamp:
03/22/11 16:21:48 (2 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
Children:
c08b10
Parents:
d285dc
Message:

[FIX] Problem with IE - changing field type

  • In registration form;
  • If user was too fast, he could submit the old form with a new field value;
  • Just disabled "submit" and "cancel" buttons;
Location:
indico/MaKaC/webinterface
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/pages/registrationForm.py

    r5f7a6d r8b580b  
    13851385 
    13861386    def _getFieldTypesHTML(self): 
    1387         html=["""<select name="input" onchange="javascript:$E(WConfModifRegFormGeneralSectionFieldEdit).dom.submit();">"""] 
     1387        html=["""<select name="input" onchange="javascript:$E('WConfModifRegFormGeneralSectionFieldEdit').dom.submit();  $E('submitButton').dom.disabled=true; $E('cancelButton').dom.disabled=true;">"""] 
    13881388        keylist=registration.FieldInputs.getAvailableInputKeys() 
    13891389        keylist.sort() 
  • indico/MaKaC/webinterface/tpls/ConfModifRegFormGeneralSectionFieldEdit.tpl

    r19825c r8b580b  
    3535</script> 
    3636 
    37 <form id="WConfModifRegFormGeneralSectionFieldEdit" name="WConfModifRegFormGeneralSectionFieldEdit" action=<%= postURL %> method="POST" onsubmit="return controle()"> 
     37<form id="WConfModifRegFormGeneralSectionFieldEdit" name="WConfModifRegFormGeneralSectionFieldEdit" action=<%= postURL %> method="POST" onsubmit="return controle();"> 
    3838  <table width="80%" align="center" border="0" style="border-left: 1px solid #777777"> 
    3939    <tr> 
     
    7171    <tr> 
    7272      <td valign="bottom" align="left" colspan="2"> 
    73       <input type="submit" class="btn" name="save" value="<%= _("save")%>" style="width:80px" onFocus="saveIsFocused=true;" onBlur="saveIsFocused=false;"> 
    74       <input type="submit" class="btn" name="cancel" value="<%= _("cancel")%>" style="width:80px"> 
     73      <input id="submitButton" type="submit" class="btn" name="save" value="<%= _("save")%>" style="width:80px" onFocus="saveIsFocused=true;" onBlur="saveIsFocused=false;"> 
     74      <input id="cancelButton" type="submit" class="btn" name="cancel" value="<%= _("cancel")%>" style="width:80px"> 
    7575      </td> 
    7676    </tr> 
Note: See TracChangeset for help on using the changeset viewer.