Browse Source

HUE-2548 [metastore] Create table then load data does redirect to the table page

Added timeout to redirect
Enrico Berti 11 năm trước cách đây
mục cha
commit
2b586a27df
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      apps/beeswax/src/beeswax/templates/execute.mako

+ 3 - 1
apps/beeswax/src/beeswax/templates/execute.mako

@@ -2785,7 +2785,9 @@ viewModel.design.fileResources.values.subscribe(function() {
   });
   $(document).on('stop_watch.query', function(e) {
     if (viewModel.design.results.errors().length == 0) {
-      window.location.href = "${request.GET['on_success_url']}";
+      window.setTimeout(function(){
+        window.location.href = "${request.GET['on_success_url']}";
+      }, 200);
     }
   });
 % elif action == 'editor-results':