Changeset 07765c in indico
- Timestamp:
- 03/10/11 15:19:05 (2 years ago)
- 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)
- Location:
- indico
- Files:
-
- 2 edited
-
MaKaC/webinterface/tpls/ConfModifRegistrants.tpl (modified) (1 diff)
-
htdocs/js/indico/Legacy/Util.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/webinterface/tpls/ConfModifRegistrants.tpl
r1fea3d r07765c 122 122 <tr> 123 123 <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.'));"> 125 125 <table> 126 126 <tr> -
indico/htdocs/js/indico/Legacy/Util.js
ra3574e r07765c 542 542 543 543 //--- 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 } 546 548 } 547 549 else if (dataType == 'int' && !(allowEmpty && trim(component.get()) === '') && !IndicoUtil.isInteger(component.get())) { … … 632 634 }); 633 635 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); 638 646 }); 639 if (exists(radioButtonLabelStopObserving[component.dom.name])) {640 each (radioButtonLabelStopObserving[component.dom.name], function(stopObserver) {stopObserver()});641 }642 Dom.List.remove(document.body, tooltip);643 647 }); 644 648 }
Note: See TracChangeset
for help on using the changeset viewer.
