|
@@ -1167,7 +1167,7 @@ $(document).ready(function () {
|
|
|
$("#validationResults").empty();
|
|
$("#validationResults").empty();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- % if not design.id and not ( query_history and query_history.id ):
|
|
|
|
|
|
|
+ % if not (design and design.id) and not ( query_history and query_history.id ):
|
|
|
if ($.totalStorage("${app_name}_temp_query") != null && $.totalStorage("${app_name}_temp_query") != "") {
|
|
if ($.totalStorage("${app_name}_temp_query") != null && $.totalStorage("${app_name}_temp_query") != "") {
|
|
|
viewModel.queryEditorBlank(true);
|
|
viewModel.queryEditorBlank(true);
|
|
|
codeMirror.setValue($.totalStorage("${app_name}_temp_query"));
|
|
codeMirror.setValue($.totalStorage("${app_name}_temp_query"));
|