|
@@ -1073,9 +1073,11 @@ var HIVE_AUTOCOMPLETE_APP = "${app_name}";
|
|
|
|
|
|
|
|
var STATS_PROBLEMS = "${ _('There was a problem loading the stats.') }";
|
|
var STATS_PROBLEMS = "${ _('There was a problem loading the stats.') }";
|
|
|
|
|
|
|
|
|
|
+var hasBeenResetAfterError = false;
|
|
|
var HIVE_AUTOCOMPLETE_GLOBAL_CALLBACK = function (data) {
|
|
var HIVE_AUTOCOMPLETE_GLOBAL_CALLBACK = function (data) {
|
|
|
- if (data != null && data.error && typeof resetNavigator != "undefined") {
|
|
|
|
|
|
|
+ if (data != null && data.error && typeof resetNavigator != "undefined" && !hasBeenResetAfterError) {
|
|
|
resetNavigator();
|
|
resetNavigator();
|
|
|
|
|
+ hasBeenResetAfterError = true;
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -1630,6 +1632,7 @@ $(document).ready(function () {
|
|
|
|
|
|
|
|
$(document).on("error.autocomplete", function(){
|
|
$(document).on("error.autocomplete", function(){
|
|
|
$(".CodeMirror-spinner").remove();
|
|
$(".CodeMirror-spinner").remove();
|
|
|
|
|
+ $("#navigatorLoader").hide();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
function splitStatements(hql) {
|
|
function splitStatements(hql) {
|