Changeset b3195a in indico


Ignore:
Timestamp:
06/10/10 18:11:33 (3 years ago)
Author:
Jeremy Herr <jeremy.herr@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, new-webex, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
3e6afb
Parents:
366d22
git-author:
Jeremy Herr <jeremy.herr@…> (03/25/10 16:44:29)
git-committer:
Jeremy Herr <jeremy.herr@…> (06/10/10 18:11:33)
Message:

[IMP] Fixed Javascript for enabling submit buttons

Now, the submit buttons at the bottom of the screen are enabled or disabled correctly, taking into account plain videos

Also changed the labels to "standard (4/3)" and "wide (16/9)"

Location:
indico/MaKaC/plugins/Collaboration/RecordingManager/tpls
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/plugins/Collaboration/RecordingManager/tpls/Extra.js

    r366d22 rb3195a  
    119119ButtonCreateCDSRecord.observeClick(function(){ 
    120120    if (ButtonCreateCDSRecord.isEnabled()) { 
    121         if (typeof RMselectedTalkId != 'undefined' && 
    122                 RMselectedTalkId != '' && 
    123                 RMselectedLOID != 'undefined' && 
    124                 RMselectedLOID != '') { 
     121        if (typeof RMselectedTalkId != 'undefined' && RMselectedTalkId != '' && 
     122                (RMviewMode == 'plain_video' || 
     123                        typeof RMselectedLOID != 'undefined' && RMselectedLOID != '')) { 
    125124 
    126125            RMCreateCDSRecord(); 
     
    144143ButtonCreateIndicoLink.observeClick(function(){ 
    145144    if (!ButtonCreateIndicoLink.isEnabled()) { 
    146         if (typeof RMselectedTalkId != 'undefined' && 
    147                 RMselectedTalkId != '' && 
    148                 RMselectedLOID != 'undefined' && 
    149                 RMselectedLOID != '') { 
     145        if (typeof RMselectedTalkId != 'undefined' && RMselectedTalkId != '' && 
     146                (RMviewMode == 'plain_video' || 
     147                        typeof RMselectedLOID != 'undefined' && RMselectedLOID != '')) { 
    150148 
    151149            RMCreateIndicoLink(); 
     
    250248        IndicoUI.Effect.disappear($E('RMrightPaneWebLecture')); 
    251249        IndicoUI.Effect.appear($E('RMrightPanePlainVideo'), "block"); 
     250 
     251        if (typeof RMselectedTalkId != 'undefined' && RMselectedTalkId != '') { 
     252            ButtonCreateCDSRecord.enable(); 
     253            ButtonCreateIndicoLink.enable(); 
     254        } 
    252255    } 
    253256    else if (mode == 'web_lecture') { 
     
    256259        IndicoUI.Effect.disappear($E('RMrightPanePlainVideo')); 
    257260        IndicoUI.Effect.appear($E('RMrightPaneWebLecture'), "block"); 
     261 
     262        if (typeof RMselectedTalkId == 'undefined' || RMselectedTalkId == '' || 
     263            typeof RMselectedLOID == 'undefined' || RMselectedLOID == '') { 
     264                ButtonCreateCDSRecord.disable(); 
     265                ButtonCreateIndicoLink.disable(); 
     266        } 
    258267    } 
    259268} 
     
    301310    RMMatchSummaryMessage(RMselectedTalkId, RMselectedLOID); 
    302311 
    303     if (typeof RMselectedTalkId != 'undefined' && 
    304             RMselectedTalkId != '' && 
    305             typeof RMselectedLOID != 'undefined' && 
    306             RMselectedLOID != '') { 
     312    if (typeof RMselectedTalkId != 'undefined' && RMselectedTalkId != '' && 
     313            (RMviewMode == 'plain_video' || 
     314                    typeof RMselectedLOID != 'undefined' && RMselectedLOID != '')) { 
    307315        ButtonCreateCDSRecord.enable(); 
    308316        ButtonCreateIndicoLink.enable(); 
     
    334342    RMMatchSummaryMessage(RMselectedTalkId, RMselectedLOID); 
    335343 
    336     if (typeof RMselectedTalkId != 'undefined' && 
    337             RMselectedTalkId != '' && 
    338             typeof RMselectedLOID != 'undefined' && 
    339             RMselectedLOID != '') { 
     344    if (typeof RMselectedTalkId != 'undefined' && RMselectedTalkId != '' && 
     345            (RMviewMode == 'plain_video' || 
     346                    typeof RMselectedLOID != 'undefined' && RMselectedLOID != '')) { 
    340347        ButtonCreateCDSRecord.enable(); 
    341348        ButtonCreateIndicoLink.enable(); 
     
    358365function RMchooseVideoFormat(format_string) { 
    359366    RMvideoFormat = format_string; 
     367 
     368    if (typeof RMselectedTalkId != 'undefined' && RMselectedTalkId != '' && 
     369            (RMviewMode == 'plain_video' || 
     370                    typeof RMselectedLOID != 'undefined' && RMselectedLOID != '')) { 
     371        ButtonCreateCDSRecord.enable(); 
     372        ButtonCreateIndicoLink.enable(); 
     373    } 
     374 
    360375} 
    361376 
  • indico/MaKaC/plugins/Collaboration/RecordingManager/tpls/NewBookingForm.tpl

    r209930 rb3195a  
    9595            <div class="RMMatchPane" style="height: 200px;"> 
    9696                Select video aspect ratio: 
    97                 <input type="radio" name="talks" value="4/3" id="RMvideoFormat4to3" onclick="RMchooseVideoFormat('4/3')" checked> 
    98                 <label for="RMvideoFormat4to3">4/3</label> 
     97                <input type="radio" name="talks" value="standard" id="RMvideoFormat4to3" onclick="RMchooseVideoFormat('standard')" checked> 
     98                <label for="RMvideoFormat4to3">standard (4/3)</label> 
    9999                &nbsp;&nbsp;&nbsp; 
    100                 <input type="radio" name="talks" value="16/9" id="RMvideoFormat16to9" onclick="RMchooseVideoFormat('16/9')"> 
    101                 <label for="RMvideoFormat16to9">16/9</label> 
     100                <input type="radio" name="talks" value="wide" id="RMvideoFormat16to9" onclick="RMchooseVideoFormat('wide')"> 
     101                <label for="RMvideoFormat16to9">wide (16/9)</label> 
    102102            </div> 
    103103        </div> 
Note: See TracChangeset for help on using the changeset viewer.