Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-templating
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
acs-templating
Commits
06ee4989
Commit
06ee4989
authored
Nov 30, 2010
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- implementing Versia Peregrine features
parent
f91ed55e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
widget-procs.tcl
tcl/widget-procs.tcl
+21
-0
No files found.
tcl/widget-procs.tcl
View file @
06ee4989
...
...
@@ -563,6 +563,27 @@ ad_proc -public template::widget::checkbox {
upvar
$element
_reference element
if
{
[
exists_and_not_null element
(
custom
)]
}
{
set params
$element
(
custom
)
# Get the
"checked"
parameter that defines if the checkbox should
# be checked
set checked
""
set checked_pos
[
lsearch
$params
checked
]
if
{
$checked
_pos >= 0
}
{
set checked
[
lindex
$params
[
expr
$checked
_pos + 1
]]
}
if
{
""
!=
$checked
}
{
lappend tag_attributes checked
lappend tag_attributes
$checked
}
}
ns_log Notice
"template::widget::checkbox: element=
[
array
get element
]
"
ns_log Notice
"template::widget::checkbox: tag_attributes=
$tag
_attributes, elem_ref=
$element
_reference"
return
[
input checkbox element
$tag
_attributes
]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment