Skip to content

Commit

Permalink
[sense-ui] Add controller properties to rather than this
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Aug 31, 2016
1 parent bc4e7db commit 482afb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core_plugins/console/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ul id="autocomplete"></ul>
<div id="editor_actions">
<kbn-tooltip text="click to send request">
<a class="editor_action" ng-click="sense.sendSelected()">
<a class="editor_action" ng-click="sendSelected()">
<i class="fa fa-play"></i>
</a>
</kbn-tooltip>
Expand All @@ -19,7 +19,7 @@
<a href="#" id="copy_as_curl">Copy as cURL</a>
</li>
<li role="menuitem">
<a ng-click="sense.autoIndent($event)">Auto indent</a>
<a ng-click="autoIndent($event)">Auto indent</a>
</li>
</ul>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ module.controller('SenseController', function SenseController($scope, docTitle)
const input = require('../input');
const es = require('../es');

this.sendSelected = () => {
$scope.sendSelected = () => {
input.focus();
input.sendCurrentRequestToES();
return false;
};

this.autoIndent = (event) => {
$scope.autoIndent = (event) => {
input.autoIndent();
event.preventDefault();
input.focus();
Expand Down

0 comments on commit 482afb7

Please sign in to comment.