|
@@ -339,7 +339,7 @@ ${layout.menubar(section='query')}
|
|
|
<h1 class="card-heading simple">${_('Navigator')}</h1>
|
|
<h1 class="card-heading simple">${_('Navigator')}</h1>
|
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
|
<p>
|
|
<p>
|
|
|
- <input id="navigatorSearch" type="text" class="input-medium" placeholder="${ _('Table name...') }"/>
|
|
|
|
|
|
|
+ <input id="navigatorSearch" type="text" placeholder="${ _('Table name...') }" style="width:90%"/>
|
|
|
<span id="navigatorNoTables">${_('The selected database has no tables.')}</span>
|
|
<span id="navigatorNoTables">${_('The selected database has no tables.')}</span>
|
|
|
<ul id="navigatorTables" class="unstyled"></ul>
|
|
<ul id="navigatorTables" class="unstyled"></ul>
|
|
|
<div id="navigatorLoader">
|
|
<div id="navigatorLoader">
|
|
@@ -937,15 +937,21 @@ ${layout.menubar(section='query')}
|
|
|
$("#validationResults").empty();
|
|
$("#validationResults").empty();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ % if design and not design.id:
|
|
|
|
|
+ if ($.totalStorage("${app_name}_temp_query") != null && $.totalStorage("${app_name}_temp_query") != "") {
|
|
|
|
|
+ codeMirror.setValue($.totalStorage("${app_name}_temp_query"));
|
|
|
|
|
+ }
|
|
|
|
|
+ % endif
|
|
|
|
|
+
|
|
|
codeMirror.on("blur", function () {
|
|
codeMirror.on("blur", function () {
|
|
|
$(document.body).off("contextmenu");
|
|
$(document.body).off("contextmenu");
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
codeMirror.on("change", function () {
|
|
codeMirror.on("change", function () {
|
|
|
$(".query").val(codeMirror.getValue());
|
|
$(".query").val(codeMirror.getValue());
|
|
|
|
|
+ $.totalStorage("${app_name}_temp_query", codeMirror.getValue());
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-
|
|
|
|
|
function getHighlightedQuery() {
|
|
function getHighlightedQuery() {
|
|
|
var selection = codeMirror.getSelection();
|
|
var selection = codeMirror.getSelection();
|
|
|
if (selection != "") {
|
|
if (selection != "") {
|
|
@@ -957,6 +963,7 @@ ${layout.menubar(section='query')}
|
|
|
function checkAndSubmit() {
|
|
function checkAndSubmit() {
|
|
|
var query = getHighlightedQuery() || codeMirror.getValue();
|
|
var query = getHighlightedQuery() || codeMirror.getValue();
|
|
|
$(".query").val(query);
|
|
$(".query").val(query);
|
|
|
|
|
+ $.totalStorage("${app_name}_temp_query", null);
|
|
|
$("#advancedSettingsForm").submit();
|
|
$("#advancedSettingsForm").submit();
|
|
|
}
|
|
}
|
|
|
|
|
|