This commit is contained in:
Jordi Boggiano
2012-01-15 18:41:21 +01:00
parent faef780f96
commit f90cdfeec6
2 changed files with 11 additions and 10 deletions
+5 -5
View File
@@ -74,11 +74,11 @@ if (isset($_POST['code'])) {
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Debug Console</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="ace/ace.js"></script>
<script type="text/javascript" src="ace/mode-php.js"></script>
<script type="text/javascript" src="php-console.js"></script>
<script type="text/javascript">
<script src="jquery-1.7.1.min.js"></script>
<script src="ace/ace.js"></script>
<script src="ace/mode-php.js"></script>
<script src="php-console.js"></script>
<script>
$.console({
tabsize: <?php echo json_encode($options['tabsize']) ?>
});
+6 -5
View File
@@ -11,10 +11,11 @@
*
* Source on Github http://github.com/Seldaek/php-console
*/
(function() {
var updateStatusBar, handleKeyPress, options, editor;
(function(require, $, ace) {
"use strict";
var updateStatusBar, prepareClippyButton, refreshKrumoState, handleSubmit, initializeAce,
options, editor;
options = {
tabsize: 4,
editor: 'editor'
@@ -50,7 +51,7 @@
$('<a class="expand" href="#">Toggle all</a>')
.click(function(e) {
$('div.krumo-element.krumo-expand').each(function(idx, el) {
krumo.toggle(el);
window.krumo.toggle(el);
});
e.preventDefault();
})
@@ -122,4 +123,4 @@
$('form').submit(handleSubmit);
});
};
}());
}(require, jQuery, ace));