diff --git a/explorer/src/js/explorer.js b/explorer/src/js/explorer.js index 57594ed1..6b530cfe 100644 --- a/explorer/src/js/explorer.js +++ b/explorer/src/js/explorer.js @@ -231,6 +231,17 @@ export class ExplorerEditor { this.$form.append(this.$snapshotField); }.bind(this)); + $("#save_only_button").click(function() { + var params = this.getParams(this); + if(params) { + this.$form.attr('action', '../' + this.queryId + '/?show=0¶ms=' + this.serializeParams(params)); + } else { + this.$form.attr('action', '../' + this.queryId + '/?show=0'); + } + this.$snapshotField.hide(); + this.$form.append(this.$snapshotField); + }.bind(this)); + $("#refresh_button").click(function(e) { e.preventDefault(); var params = this.getParams(); diff --git a/explorer/templates/explorer/query.html b/explorer/templates/explorer/query.html index 417b6053..431e2527 100644 --- a/explorer/templates/explorer/query.html +++ b/explorer/templates/explorer/query.html @@ -105,9 +105,13 @@

{% if can_change %} + {% export_buttons query %}