Plugin Directory

Changeset 1646920


Ignore:
Timestamp:
04/27/2017 09:20:07 PM (9 years ago)
Author:
robby.roboter
Message:

fix validation, fix checkbox styles

Location:
redi-restaurant-reservation/branches/newDesign
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • redi-restaurant-reservation/branches/newDesign/css/restaurant.css

    r1646867 r1646920  
    12471247    max-width: 400px;
    12481248    z-index: 0;
     1249    padding: 0;
     1250    font-size: 18px;
    12491251}
    12501252
     
    13071309    outline: 1px solid #fa9090;
    13081310}
     1311
     1312.f_select2 label{
     1313    display: inline;
     1314    font-size: 18px;
     1315    font-family: "PT Sans Narrow", verdana;
     1316    text-transform: none;
     1317    font-weight: normal;
     1318    color: #888 !important;
     1319}
  • redi-restaurant-reservation/branches/newDesign/js/restaurant.js

    r1641783 r1646920  
    245245
    246246        $('.field_required').each(function () {
    247             if ($(this).attr('type') === 'checkbox' && $(this).attr('checked') !== 'checked' || $(this).attr('type') === 'textbox' && $(this).val() === '') {
     247            if ($(this).attr('type') === 'checkbox' && $(this).attr('checked') !== 'checked' || $(this).attr('type') === 'text' && $(this).val() === '') {
    248248                $('#' + this.id + '_message').show();
    249249                $('#' + this.id).addClass('form_validation_error');
  • redi-restaurant-reservation/branches/newDesign/templates/frontend.php

    r1641783 r1646920  
    275275            </div>
    276276            <br/>
    277             <div  class="f_select2">
     277            <div class="f_select2">
    278278                <div class="f_input_box">
    279279                    <span class="selectArrow4 required"></span>
     
    324324                                    <?php break; endswitch; ?>
    325325                        </div>
     326                        </div>
    326327                        <?php if ( isset( $$field_required ) && $$field_required ): ?>
    327328                            <div id="<?php echo 'field_' . $i . '_message'; ?>" style="display:none; text-align: center;">
     
    331332                            </div>
    332333                        <?php endif; ?>
    333                     </div>
     334                   
    334335                    <br/>
    335336                <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.