Skip to content

Commit

Permalink
removed radio buttons from scripts panel enabler
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed Jul 22, 2010
1 parent a37a27f commit 43888d7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions front-end/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
<script type="text/javascript" src="ShortcutsHelp.js"></script>
<script type="text/javascript" src="HAREntry.js"></script>
<script type="text/javascript" src="node/InspectorController.js"></script>
<script type="text/javascript" src="node/Overrides.js"></script>
</head>
<body class="detached">
<div id="toolbar">
Expand Down
2 changes: 1 addition & 1 deletion front-end/node/InspectorFrontendHostStub.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ WebInspector.InspectorFrontendHostStub.prototype = {
WebInspector.applicationSettings.installSetting("scriptsSidebarWidth", "scripts-sidebar-width", 250);
WebInspector.applicationSettings.installSetting("consoleSidebarWidth", "console-sidebar-width", 250);
WebInspector.showScriptsPanel();
WebInspector.panels.scripts._pauseOnExceptionButton.disabled = true;
WebInspector.panels.scripts._pauseOnExceptionButton.element.style.display = 'none';
WebInspector.panels.scripts._enableDebugging();
},

Expand Down
12 changes: 12 additions & 0 deletions front-end/node/Overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(function() {
window.addEventListener("load", function() {
//var box = document.createElement('input');
var panel = WebInspector.panels.scripts.panelEnablerView;
panel.disclaimerElement.style.display = 'none';
panel.enabledForSession.parentNode.style.display = 'none';
panel.enabledAlways.parentNode.style.display = 'none';
panel.enableButton.addEventListener("click", function() {
console.log('blah');
}, false);
}, false);
}())

0 comments on commit 43888d7

Please sign in to comment.