mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-15 03:36:33 +03:00
Merge pull request #85 from brianlow/selected-text-1
Run selected text. Implements sosedoff/pgweb#78.
This commit is contained in:
commit
6fd7b7d427
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user