Skip to content

Commit

Permalink
restart / clear the working space
Browse files Browse the repository at this point in the history
  • Loading branch information
glamp committed Apr 23, 2015
1 parent fd747b5 commit aee6a57
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions rodeo/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@
<div class="col-sm-7 resizable" style="border-right: 1px solid #dddddd;">
<!-- tab headers -->
<ul id="editorsTab" class="nav nav-tabs">
<button id="run-btn" title="Run script" class="close" type="button" style="color: steelblue;"><span class="glyphicon glyphicon-play-circle" aria-hidden="true"></span></button>
<button id="run-btn" title="Run script" class="close" type="button" style="color: steelblue;">
<span class="glyphicon glyphicon-play-circle" aria-hidden="true"></span>
</button>
<button id="reset-btn" title="Run script" class="close" type="button" style="color: red;">
<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span>
</button>
<li class="active">
<a class="editor1-tab" href="#tab1" data-toggle="tab" aria-expanded="false"><span class="name">Untitled.py</span>&nbsp;
<button class="close closeTab" type="button" style="color: red;"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button>
Expand Down Expand Up @@ -533,7 +538,7 @@ <h3 class="panel-title"><span class="glyphicon glyphicon-console" aria-hidden="t
}

$.post("/", { code: cmd }, function(d) {
jqconsole.Write(d.output + '\n', 'jqconsole-output');
jqconsole.Write((d.output || "") + '\n', 'jqconsole-output');
if (/help[(].+[)]/.test(cmd)) {
$('a[href="#' + "help" + '"]').tab("show");
$("#help-content").text(d.output || "");
Expand Down Expand Up @@ -637,7 +642,15 @@ <h3 class="panel-title"><span class="glyphicon glyphicon-console" aria-hidden="t
jqconsole.Write(">>> " + text + '\n', 'jqconsole-input');
sendCommand(text);
return false;
})
});

$("#reset-btn").click(function(e) {
e.preventDefault();
if (confirm("Are you sure you want to reset your session?")) {
sendCommand("%reset -f");
}
return false;
});

$("#prev-plot").click(function(e) {
e.preventDefault();
Expand Down

0 comments on commit aee6a57

Please sign in to comment.