Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
purr-data
Commits
ec205f09
There was a problem fetching the pipeline summary.
Commit
ec205f09
authored
8 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Patches
Plain Diff
Remove debugging messages from canvas/array dialog
parent
da879b45
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd/nw/dialog_canvas.html
+2
-17
2 additions, 17 deletions
pd/nw/dialog_canvas.html
with
2 additions
and
17 deletions
pd/nw/dialog_canvas.html
+
2
−
17
View file @
ec205f09
...
...
@@ -397,11 +397,6 @@ function attr_change(elem) {
function
array_choose
(
array_index
)
{
var
i
,
name
,
value
,
elem
,
style_index
,
style_opts
,
array_attr
=
pd_garray_attrs
[
array_index
];
for
(
name
in
array_attr
)
{
if
(
array_attr
.
hasOwnProperty
(
name
))
{
console
.
log
(
"
name is
"
+
name
);
}
}
for
(
name
in
array_attr
)
{
if
(
array_attr
.
hasOwnProperty
(
name
))
{
value
=
array_attr
[
name
];
...
...
@@ -424,7 +419,7 @@ function array_choose(array_index) {
break
;
default
:
// name, size, fill, and outline
pdgui
.
post
(
"
name is
"
+
name
);
//
pdgui.post("name is " + name);
elem
=
document
.
getElementsByName
(
name
)[
0
];
elem
.
value
=
value
;
break
;
...
...
@@ -649,11 +644,6 @@ function register_window_id(gfxstub, attr_objects) {
var
canvas_fieldsets
,
i
,
prop
;
// attr_objects[0]: canvas properties
// attr_objects[1...n-1]: array properties
for
(
prop
in
attr_objects
[
0
])
{
if
(
attr_objects
[
0
].
hasOwnProperty
(
prop
))
{
pdgui
.
post
(
prop
+
"
:
"
+
attr_objects
[
0
][
prop
]);
}
}
add_events
(
gfxstub
);
// not sure that we need this for properties windows...
// pdgui.canvas_map(gfxstub);
...
...
@@ -708,14 +698,10 @@ function populate_form(attr_object) {
// Unhide the span with the class with the same name as the id
var
prop_group
=
document
.
getElementsByClassName
(
prop
)[
0
];
if
(
prop_group
!==
undefined
)
{
console
.
log
(
"
the thing here is
"
+
prop
);
prop_group
.
classList
.
remove
(
"
hidden
"
);
}
else
{
pdgui
.
post
(
"
Error: couldn't find iemgui prop group for
"
+
prop
);
}
if
(
prop
===
"
display-flags
"
)
{
//
protip
: "!!" forces Boolean, "+" forces Number type
//
reminder
: "!!" forces Boolean, "+" forces Number type
var
flag
=
+
attr_object
[
prop
];
document
.
getElementsByName
(
"
gop
"
)[
0
].
checked
=
!!
flag
;
document
.
getElementsByName
(
"
hide-name
"
)[
0
].
checked
=
!!
(
flag
&
2
);
...
...
@@ -734,7 +720,6 @@ function populate_form(attr_object) {
}
else
if
(
elem
[
0
].
type
===
"
checkbox
"
)
{
// The attr here is a string, so we need to
// force it to number, hence the "+" below
pdgui
.
post
(
"
found a CHECKED ITEM!!!
"
);
elem
[
0
].
checked
=
+
attr_object
[
prop
];
}
else
{
elem
[
0
].
value
=
attr_object
[
prop
];
...
...
This diff is collapsed.
Click to expand it.
Jonathan Wilkes
@jwilkes
mentioned in issue
#36 (closed)
·
8 years ago
mentioned in issue
#36 (closed)
mentioned in issue #36
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment