Changeset 9d6eb3 in indico


Ignore:
Timestamp:
05/12/10 10:43:13 (3 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
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:
4e4d928
Parents:
0a4b4c
git-author:
Leszek Syroka <leszek.marek.syroka@…> (05/03/10 14:03:52)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (05/12/10 10:43:13)
Message:

[FIX] Problems with material widget

  • sometimes Ids of conference, session, contribution etc. contains not only numbers but letters.
  • sometimes 'null' values is stored as a string containing word 'null'.
  • fix#217
Location:
indico
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/stylesheets/include/common.xsl

    r83c489 r9d6eb3  
    145145        <xsl:value-of select="$alignMenuRight"/> 
    146146        <xsl:text disable-output-escaping="yes"><![CDATA[);</script>]]></xsl:text> 
    147  
    148         <!-- 
    149         <xsl:if test="$item/modifyLink != ''"> 
    150             <a href="{$item/modifyLink}"><img src="images/manage.png"  alt="modify this item" title="modify this item" style="vertical-align: middle;"/></a> 
    151         </xsl:if> 
    152         <xsl:if test="$item/minutesLink != ''"> 
    153             <a href="#" onclick="IndicoUI.Dialogs.writeMinutes({$confId},{$sessId},{$contId},{$subContId});return false;"><img src="images/write_minutes.png" alt="write minutes" style="vertical-align: middle; margin-left:2px;margin-right:0px;" title="write minutes"/></a> 
    154         </xsl:if> 
    155         <xsl:if test="$item/materialLink != ''"> 
    156             <a href="#" onclick="IndicoUI.Dialogs.Material.editor({$confId},{$sessId},{$contId},{$subContId},Indico.Data.MaterialTypes.meeting, {$uploadURL});return false;"><img src="images/file_shadow.png" border="0" alt="submit material" style="vertical-align: middle; margin-left:2px;margin-right:0px;" title="submit material"/></a> 
    157         </xsl:if> 
    158         --> 
    159147    </xsl:if> 
    160148 
  • indico/htdocs/js/indico/MaterialEditor/Editor.js

    r3e1745 r9d6eb3  
    10021002 
    10031003    _drawItem: function(pair) { 
    1004  
    10051004        var self = this; 
    10061005 
     
    12661265 
    12671266        var args = { 
    1268             'categId': intToStr(this.categId), 
    1269             'confId': intToStr(this.confId), 
    1270             'sessionId': intToStr(this.sessId), 
    1271             'contribId': intToStr(this.contId), 
    1272             'subContId': intToStr(this.subContId), 
     1267            'categId': this.categId, 
     1268            'confId': this.confId, 
     1269            'sessionId': this.sessId, 
     1270            'contribId': this.contId, 
     1271            'subContId': this.subContId, 
    12731272            'parentProtected': this.parentProtected 
    12741273        }; 
     
    12761275        // Remove null parameters 
    12771276        each(args, function(value, key) { 
    1278             if (value === null) { 
     1277            //sometimes 'null' value is set as a string 
     1278            if (value === null || value === undefined || value =="null") { 
    12791279                delete args[key]; 
    12801280            } 
Note: See TracChangeset for help on using the changeset viewer.