 = true;
              } else {
                if ($('#height-padding-toggle').is(':checked')) {
                  data['height-padding'] = h_pad;
                }
              }
              break;
            default: // generic case of items that are required in other cases
              if ($('#width-padding-toggle').is(':checked') && w_pad == '') {
                $('#width-padding').addClass('ui-state-error');
                $('#width-padding').siblings('.error-msg').append('<div>If width padding