Changeset c180c2 in indico
- Timestamp:
- 06/24/11 14:31:50 (2 years ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
- Children:
- f3c83f
- Parents:
- 92c7d7
- git-author:
- Adrian Moennich <jerome.ernst.monnich@…> (06/15/11 12:14:27)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (06/24/11 14:31:50)
- Location:
- indico
- Files:
-
- 2 edited
-
MaKaC/webinterface/tpls/RoomBookingBlockingForm.tpl (modified) (2 diffs)
-
htdocs/js/indico/Legacy/validation.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/webinterface/tpls/RoomBookingBlockingForm.tpl
r14aed4 rc180c2 123 123 124 124 var serializeACL = function() { 125 $ ('allowedUsers').setValue(Json.write(principalField.getUsers()));125 $j('#allowedUsers').val(Json.write(principalField.getUsers())); 126 126 } 127 127 … … 132 132 }); 133 133 hasRooms = (roomGuids.length > 0); 134 $ ('blockedRooms').setValue(Json.write(roomGuids));134 $j('#blockedRooms').val(Json.write(roomGuids)); 135 135 } 136 136 -
indico/htdocs/js/indico/Legacy/validation.js
re821bd rc180c2 79 79 function required_fields( fieldNames ) 80 80 { 81 var isValid = true 82 for ( i = 0; i < fieldNames.length; ++i ) 83 { 84 fieldName = fieldNames[i] 85 if ( trim($F( fieldName )).length == 0 ) 86 { 87 $( fieldName ).className = 'invalid' 88 isValid = false 89 } 90 } 91 return isValid 81 var isValid = true; 82 for (var i = 0; i < fieldNames.length; ++i) { 83 fieldName = fieldNames[i]; 84 if (trim($F(fieldName)).length == 0) { 85 $j('#' + fieldName).addClass('invalid'); 86 isValid = false; 87 } 88 } 89 return isValid; 92 90 } 93 91
Note: See TracChangeset
for help on using the changeset viewer.
