[jifty-devel] Re: [Jifty-commit] r2230 - in jifty/trunk: share/web/templates/__jifty

Nelson Elhage nelhage at bestpractical.com
Thu Nov 30 13:46:40 EST 2006


Out of curiosity, how is this much different from a validation warning?

- Nelson

On Thu, Nov 30, 2006 at 01:09:05PM -0500, jifty-commit at lists.jifty.org wrote:
> Author: falcone
> Date: Thu Nov 30 13:09:04 2006
> New Revision: 2230
> 
> Modified:
>    jifty/trunk/   (props changed)
>    jifty/trunk/share/web/templates/__jifty/validator.xml
> 
> Log:
>  r14845 at ketch:  falcone | 2006-11-30 13:08:42 -0500
>  * Allow a canonicalization note to be set, even if you don't change the 
>    value of the action parameter
> 
> 
> Modified: jifty/trunk/share/web/templates/__jifty/validator.xml
> ==============================================================================
> --- jifty/trunk/share/web/templates/__jifty/validator.xml	(original)
> +++ jifty/trunk/share/web/templates/__jifty/validator.xml	Thu Nov 30 13:09:04 2006
> @@ -48,19 +48,19 @@
>              or length $action->argument_value($arg) == 0 ) {
>              $writer->emptyTag( "blank", name => $action->form_field_name($arg) );
>          } else {
> -            if ( $action->result->field_canonicalization_note($arg) ) {
> -                $writer->dataElement(
> -                    "canonicalization_note",
> -                    $action->result->field_canonicalization_note($arg),
> -                    id => $action->canonicalization_note_div_id($arg)
> -                );
> -            }
>              $writer->dataElement(
>                  "update",
>                  $action->argument_value($arg),
>                  name => $action->form_field_name($arg)
>              );
>          }
> +        if ( $action->result->field_canonicalization_note($arg) ) {
> +            $writer->dataElement(
> +                "canonicalization_note",
> +                $action->result->field_canonicalization_note($arg),
> +                id => $action->canonicalization_note_div_id($arg)
> +            );
> +        }
>      }
>      $writer->endTag();
>  }
> _______________________________________________
> Jifty-commit mailing list
> Jifty-commit at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-commit


More information about the jifty-devel mailing list