Changeset 1802


Ignore:
Timestamp:
May 3, 2011, 2:33:45 PM (12 years ago)
Author:
robert@…
Message:

Solved styling issues with required contacts in simplewizard, introduced in r1775.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/taglib/dbnp/studycapturing/WizardTagLib.groovy

    r1775 r1802  
    143143                out << '<ul class="publication_list" id="' + attrs.name + '_list">';
    144144
    145                 out << '<li>';
    146                 out << '<span class="publication_none" id="' + attrs.name + '_none" style="display: ' + display_none + ';">';
     145                out << '<li class="empty" id="' + attrs.name + '_none" >';
     146                out << '<span class="publication_none" style="display: ' + display_none + ';">';
    147147                out << 'No publications selected';
    148148                out << '</span>';
     
    252252                out << '<ul class="contact_list" id="' + attrs.name + '_list">';
    253253
    254                 out << '<li>';
    255                 out << '<span class="contacts_none" id="' + attrs.name + '_none" style="display: ' + display_none + ';">';
     254                out << '<li class="empty" id="' + attrs.name + '_none">';
     255                out << '<span class="contacts_none" style="display: ' + display_none + ';">';
    256256                out << 'No contacts selected';
    257257                out << '</span>';
  • trunk/web-app/css/simplewizard.css

    r1685 r1802  
    1111div .simpleWizard .description { width: 170px; }
    1212.simpleWizard .error, .simpleWizard .required { background-position: 150px 2px; }
     13#contacts .required { background-position: 2px 4px; padding-left: 20px; }
    1314.samplespage td.required { background-position: 160px 6px; }
    1415
  • trunk/web-app/js/studywizard.js

    r1794 r1802  
    360360
    361361                                // Hide the 'none box'
    362                                 $('#' + element_id + '_none').css('display', 'none');
     362                                $('#' + element_id + '_none').hide();
    363363                        }
    364364                },
     
    389389                // Show the 'none box' if needed
    390390                if (ids.length == 0) {
    391                         $('#' + element_id + '_none').css('display', 'inline');
     391                        $('#' + element_id + '_none').show();
    392392                }
    393393
     
    562562
    563563                // Hide the 'none box'
    564                 $('#' + element_id + '_none').css('display', 'none');
     564                $('#' + element_id + '_none').hide();
    565565        }
    566566
     
    587587                // Show the 'none box' if needed
    588588                if (ids.length == 0) {
    589                         $('#' + element_id + '_none').css('display', 'inline');
     589                        $('#' + element_id + '_none').show();
    590590                }
    591591
Note: See TracChangeset for help on using the changeset viewer.