Changeset 408dbdf in indico


Ignore:
Timestamp:
12/02/10 17:23:28 (2 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
956581
Parents:
edc3c0
git-author:
Leszek Syroka <leszek.marek.syroka@…> (12/02/10 14:42:27)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (12/02/10 17:23:28)
Message:

[FIX] Color customization for conferences

  • forms in color selector were fetched by index which cause problems at some browsers. Now they are fetched by a form id.
  • fix#559
Location:
indico/MaKaC/webinterface
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/pages/conferences.py

    r86ac02 r408dbdf  
    69346934        url.addParam("colorCodeTarget", "colorCode") 
    69356935        url.addParam("colorPreviewTarget", "colorpreview") 
    6936         url.addParam("formId", self._formId) 
     6936        url.addParam("formId", self._formatOption + "Form") 
    69376937 
    69386938        vars["colorChartURL"] = url 
  • indico/MaKaC/webinterface/tpls/SimpleColorChart.tpl

    r9033fd r408dbdf  
    77<!-- Begin 
    88function showColor(val) { 
    9         window.opener.document.forms[%(formId)s].%(colorString)s.value = val; 
    10         window.opener.document.forms[%(formId)s].%(colorPreviewString)s.style.background = val; 
     9        window.opener.document.forms["%(formId)s"].%(colorString)s.value = val; 
     10        window.opener.document.forms["%(formId)s"].%(colorPreviewString)s.style.background = val; 
    1111        window.close(); 
    1212} 
Note: See TracChangeset for help on using the changeset viewer.