Changeset c180c2 in indico


Ignore:
Timestamp:
06/24/11 14:31:50 (2 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
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)
Message:

[REF] nuke more prototype in room booking/blocking

Location:
indico
Files:
2 edited

Legend:

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

    r14aed4 rc180c2  
    123123 
    124124            var serializeACL = function() { 
    125                 $('allowedUsers').setValue(Json.write(principalField.getUsers())); 
     125                $j('#allowedUsers').val(Json.write(principalField.getUsers())); 
    126126            } 
    127127 
     
    132132                }); 
    133133                hasRooms = (roomGuids.length > 0); 
    134                 $('blockedRooms').setValue(Json.write(roomGuids)); 
     134                $j('#blockedRooms').val(Json.write(roomGuids)); 
    135135            } 
    136136 
  • indico/htdocs/js/indico/Legacy/validation.js

    re821bd rc180c2  
    7979function required_fields( fieldNames ) 
    8080{ 
    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; 
    9290} 
    9391 
Note: See TracChangeset for help on using the changeset viewer.