https://bugs.webkit.org/show_bug.cgi?id=90070
Reviewed by Yury Semikhatsky.
* inspector/front-end/inspector.js:
(WebInspector.showConsole):
(WebInspector.showPanel):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121528
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-06-27 Vsevolod Vlasov <vsevik@chromium.org>
+
+ Web Inspector: showConsole() should close previous view in drawer.
+ https://bugs.webkit.org/show_bug.cgi?id=90070
+
+ Reviewed by Yury Semikhatsky.
+
+ * inspector/front-end/inspector.js:
+ (WebInspector.showConsole):
+ (WebInspector.showPanel):
+
2012-06-29 Ryosuke Niwa <rniwa@webkit.org>
Remove a #include erroneously added in r120896.
WebInspector.showConsole = function()
{
- if (WebInspector._toggleConsoleButton && !WebInspector._toggleConsoleButton.toggled)
+ if (WebInspector._toggleConsoleButton && !WebInspector._toggleConsoleButton.toggled) {
+ if (WebInspector.drawer.visible)
+ this._closePreviousDrawerView();
WebInspector._toggleConsoleButtonClicked();
+ }
}
WebInspector.showPanel = function(panel)