[Seaside] WARenderCanvas>>button has allways a class attribute

Boris Popov boris at deepcovelabs.com
Thu Apr 5 15:49:49 UTC 2007


Even then class="button" shouldn't harm anything, so why remove it?
Either way you decide, the magic is in 

WAFormInputTag>>with: aBlock
	self type isNil ifFalse: [
		self attributes at: 'type' ifAbsentPut: [ self type ].
		self class: self type ].
	super with: aBlock.

Just remove "self class: self type" and you're good to go,

Cheers!

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> bounces at lists.squeakfoundation.org] On Behalf Of Thomas Fischer
> Sent: Thursday, April 05, 2007 8:09 AM
> To: seaside at lists.squeakfoundation.org
> Subject: Re: [Seaside] WARenderCanvas>>button has allways a class
> attribute
> 
> 
> Hi,
> 
> Boris Popov-2 wrote:
> > Any specific reason? It helps styling different inputs in browsers
> > that don't fully support 'type=' css selectors.
> 
> We have overload WAButtontag>>tag with
>   tag
>     ^ 'button'
> so that seaside produce a <button> and not a <input type="button">
> 
> salute
> Thomas
> 
> 
> --
> View this message in context: http://www.nabble.com/Re%3A-
> WARenderCanvas%3E%3Ebutton-has-allways-a-class-attribute-
> tf3531948.html#a9857647
> Sent from the Squeak - Seaside mailing list archive at Nabble.com.
> 
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the Seaside mailing list