Skip to content

Commit

Permalink
Merge pull request #85 from brianlow/selected-text-1
Browse files Browse the repository at this point in the history
Run selected text. Implements #78.
  • Loading branch information
sosedoff committed May 18, 2015
2 parents 50f0f5f + 385b415 commit 6fd7b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function runQuery() {
$("#run, #explain, #csv").prop("disabled", true);
$("#query_progress").show();

var query = $.trim(editor.getValue());
var query = $.trim(editor.getSelectedText() || editor.getValue());

if (query.length == 0) {
$("#run, #explain, #csv").prop("disabled", false);
Expand Down

0 comments on commit 6fd7b7d

Please sign in to comment.