Changeset 07765c in indico


Ignore:
Timestamp:
03/10/11 15:19:05 (2 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
51fa48
Parents:
22d49d
git-author:
Adrian Moennich <jerome.ernst.monnich@…> (03/09/11 11:00:10)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (03/10/11 15:19:05)
Message:

[FIX] Some registration-related js errors in IE

Location:
indico
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/tpls/ConfModifRegistrants.tpl

    r1fea3d r07765c  
    122122        <tr> 
    123123          <td colspan="40" style="border-bottom:2px solid #777777;padding-top:5px" valign="bottom" align="left"> 
    124             <form action=<%= actionPostURL %> method="post" name="registrantsForm" onsubmit="return atLeastOneSelected($E("registrantsItems"), $T("No registrant selected! Please select at least one."));"> 
     124            <form action=<%= actionPostURL %> method="post" name="registrantsForm" onsubmit="return atLeastOneSelected($E('registrantsItems'), $T('No registrant selected! Please select at least one.'));"> 
    125125              <table> 
    126126                <tr> 
  • indico/htdocs/js/indico/Legacy/Util.js

    ra3574e r07765c  
    542542 
    543543                //--- Check if there are errors --- 
    544                 if (dataType == "radio" && !allowEmpty && !self.checkRadioButton(component)) { 
    545                     error = Html.span({}, "Please choose an option"); 
     544                if (dataType == "radio") { 
     545                    if (!allowEmpty && !self.checkRadioButton(component)) { 
     546                        error = Html.span({}, "Please choose an option"); 
     547                    } 
    546548                } 
    547549                else if (dataType == 'int' && !(allowEmpty && trim(component.get()) === '') && !IndicoUtil.isInteger(component.get())) { 
     
    632634                        }); 
    633635 
    634                         component.observeEvent('click', function(event) { 
    635                             each($N(component.dom.name), function(component){ 
    636                                 component.dom.className = component.dom.className.substring(0, component.dom.className.length-8); 
    637                                 $E(component.dom.id + 'Label').dom.className = component.dom.className.substring(0, component.dom.className.length-13); 
     636                        each($N(component.dom.name), function(component){ 
     637                            component.observeEvent('click', function(event) { 
     638                                each($N(component.dom.name), function(component){ 
     639                                    component.dom.className = component.dom.className.substring(0, component.dom.className.length-8); 
     640                                    $E(component.dom.id + 'Label').dom.className = component.dom.className.substring(0, component.dom.className.length-13); 
     641                                }); 
     642                                if (exists(radioButtonLabelStopObserving[component.dom.name])) { 
     643                                    each (radioButtonLabelStopObserving[component.dom.name], function(stopObserver) {stopObserver()}); 
     644                                } 
     645                                Dom.List.remove(document.body, tooltip); 
    638646                            }); 
    639                             if (exists(radioButtonLabelStopObserving[component.dom.name])) { 
    640                                 each (radioButtonLabelStopObserving[component.dom.name], function(stopObserver) {stopObserver()}); 
    641                             } 
    642                             Dom.List.remove(document.body, tooltip); 
    643647                        }); 
    644648                    } 
Note: See TracChangeset for help on using the changeset viewer.