Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
ab7650f1
Commit
ab7650f1
authored
Nov 01, 2019
by
Evan W. Patton
Committed by
Susan Rati Lane
Nov 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide more chaff
Change-Id: Iae1a102a0323a65a936b21cfa36326c686e3a2c5
parent
702f9b0f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
appinventor/blocklyeditor/src/backpack.js
appinventor/blocklyeditor/src/backpack.js
+1
-0
appinventor/blocklyeditor/src/drawer.js
appinventor/blocklyeditor/src/drawer.js
+3
-3
appinventor/blocklyeditor/src/warningIndicator.js
appinventor/blocklyeditor/src/warningIndicator.js
+12
-6
No files found.
appinventor/blocklyeditor/src/backpack.js
View file @
ab7650f1
...
...
@@ -479,6 +479,7 @@ Blockly.Backpack.prototype.openBackpack = function(e) {
for
(
var
i
=
0
;
i
<
len
;
i
++
)
{
newBackpack
[
i
]
=
Blockly
.
Xml
.
textToDom
(
backpack
[
i
]).
firstChild
;
}
Blockly
.
hideChaff
();
p
.
flyout_
.
show
(
newBackpack
);
});
}
...
...
appinventor/blocklyeditor/src/drawer.js
View file @
ab7650f1
...
...
@@ -152,6 +152,7 @@ Blockly.Drawer.prototype.showBuiltin = function(drawerName) {
if
(
!
blockSet
)
{
throw
"
no such drawer:
"
+
drawerName
;
}
Blockly
.
hideChaff
();
var
xmlList
=
this
.
blockListToXMLArray
(
blockSet
);
this
.
flyout_
.
show
(
xmlList
);
};
...
...
@@ -164,7 +165,7 @@ Blockly.Drawer.prototype.showBuiltin = function(drawerName) {
Blockly
.
Drawer
.
prototype
.
showComponent
=
function
(
instanceName
)
{
var
component
=
this
.
workspace_
.
getComponentDatabase
().
getInstance
(
instanceName
);
if
(
component
)
{
this
.
flyout_
.
hide
();
Blockly
.
hideChaff
();
this
.
flyout_
.
show
(
this
.
instanceRecordToXMLArray
(
component
));
this
.
lastComponent
=
instanceName
;
}
else
{
...
...
@@ -182,8 +183,7 @@ Blockly.Drawer.prototype.showComponent = function(instanceName) {
*/
Blockly
.
Drawer
.
prototype
.
showGeneric
=
function
(
typeName
)
{
if
(
this
.
workspace_
.
getComponentDatabase
().
hasType
(
typeName
))
{
this
.
flyout_
.
hide
();
Blockly
.
hideChaff
();
var
xmlList
=
this
.
componentTypeToXMLArray
(
typeName
);
this
.
flyout_
.
show
(
xmlList
);
}
else
{
...
...
appinventor/blocklyeditor/src/warningIndicator.js
View file @
ab7650f1
...
...
@@ -257,20 +257,26 @@ Blockly.WarningIndicator.prototype.updateWarningToggleText = function() {
*
*/
Blockly
.
WarningIndicator
.
prototype
.
onclickWarningToggle
=
function
()
{
Blockly
.
hideChaff
();
window
.
parent
.
BlocklyPanel_callToggleWarning
();
}
}
;
Blockly
.
WarningIndicator
.
prototype
.
onclickWarningNavPrevious
=
function
()
{
Blockly
.
hideChaff
();
this
.
workspace_
.
getWarningHandler
().
previousWarning
();
}
};
Blockly
.
WarningIndicator
.
prototype
.
onclickWarningNavNext
=
function
()
{
Blockly
.
hideChaff
();
this
.
workspace_
.
getWarningHandler
().
nextWarning
();
}
};
Blockly
.
WarningIndicator
.
prototype
.
onclickErrorNavPrevious
=
function
()
{
Blockly
.
hideChaff
();
this
.
workspace_
.
getWarningHandler
().
previousError
();
}
};
Blockly
.
WarningIndicator
.
prototype
.
onclickErrorNavNext
=
function
()
{
Blockly
.
hideChaff
();
this
.
workspace_
.
getWarningHandler
().
nextError
();
}
}
;
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