I'm trying to keep from having a check box need a double click to
become selected.
It seems the base behavior in jeditable is that one click opens an
item for editing, and one click (or typing) allows the edits to occur.
In the case of a checkbox a double click is not an expected behavior
for a standard user so this can be confusing for them. In the even
that they are selecting multiple checkboxes in succession is becomes
more so.
I pulled the latest version of jeditable from github last night and
updated my core so I am on the edge.
I will try adding in this snippet also.
On Feb 12, 2009, at 12:27 AM, Mika Tuupola wrote:
On Feb 11, 2009, at 7:13 PM, Brian Loomis wrote:
Unfortunately I am not able to get the checkbox to select without
first selecting the containing element (which has the appearance of
having to get the checkbox a double click to check it) However -
the checkbox unselects with only one click. I do not have to click
the containing element to get this behavior.
I would like to get the checkbox to select with one click - before
my designer whomps me with the usability paddle and makes me do a
tear out and use standard forms.
Sorry but I do not understand your explanation what you are trying
to do.
Do you want the checkbox to be automatically checked when you click
editable element and the checkbox appears? You could try adding this
to you custom input code:
-cut-
plugin : function(settings, original) {
$("input", this).attr("checked", true);
},
-cut-
You need to set checked in plugin method instead of element because
browsers are a bit touchy when value of input is set.
--
Mika Tuupola
http://www.appelsiini.net/