Skip to content

Commit

Permalink
webui: adjust http requests in console module views
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Apr 17, 2023
1 parent 03eb332 commit d403ddd
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions webui/module/Console/view/console/console/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,11 @@ function send(cmd) {
$("<div class='output'> * "+cmd+"</div>").insertBefore(".prompt");

if(cmd == "") {
}
else if(cmd == String.fromCharCode(112,105)) {
$("<div class='output'> * "+Math.PI+"</div>").insertBefore(".prompt");
}
else if(cmd == String.fromCharCode(101)) {
$("<div class='output'> * "+Math.E+"</div>").insertBefore(".prompt");
}
else {
} else {
$('.prompt').hide();
var request = $.ajax({
method: "POST",
url: "<?php echo $this->url('console', array('action' => 'getData'), array('query' => array('data' => 'cli'))); ?>",
url: "<?php echo $this->url('api/console', array(), array()); ?>",
data: {
"command": cmd
},
Expand Down

0 comments on commit d403ddd

Please sign in to comment.