Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1585)

Unified Diff: Source/devtools/front_end/ui/Section.js

Issue 905743003: DevTools: Reimplemented WI.WatchExpressionsSidebarPane (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/sources/sourcesPanel.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/Section.js
diff --git a/Source/devtools/front_end/ui/Section.js b/Source/devtools/front_end/ui/Section.js
index d6d2fed578b9c3c0f3d50443cd31425185b017a2..d19a38c366c3dd299b55a62a2f80f2f5c225e015 100644
--- a/Source/devtools/front_end/ui/Section.js
+++ b/Source/devtools/front_end/ui/Section.js
@@ -151,11 +151,19 @@ WebInspector.Section.prototype = {
*/
handleClick: function(event)
{
+ if (this._doNotExpandOnTitleClick)
+ return;
+
if (this._expanded)
this.collapse();
else
this.expand();
event.consume();
+ },
+
+ doNotExpandOnTitleClick: function()
+ {
+ this._doNotExpandOnTitleClick = true;
}
}
« no previous file with comments | « Source/devtools/front_end/sources/sourcesPanel.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698