فهرست منبع

HUE-2304 [beeswax] Assist table fields are not updated after a refresh

Forced refresh of every field of every table
Enrico Berti 11 سال پیش
والد
کامیت
5cc93c2
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      apps/beeswax/src/beeswax/templates/execute.mako

+ 4 - 0
apps/beeswax/src/beeswax/templates/execute.mako

@@ -1079,6 +1079,10 @@ $(document).ready(function () {
     var _db = viewModel.database();
     if (_db != null) {
       $.totalStorage(hac_getTotalStorageUserPrefix() + 'databases', null);
+      // clear all the table fields too
+      $.totalStorage(hac_getTotalStorageUserPrefix() + 'tables_' + _db).split(" ").forEach(function(item){
+        $.totalStorage(hac_getTotalStorageUserPrefix() + 'columns_' + _db + '_' + item, null);
+      });
       getDatabases(function(){
         $.totalStorage(hac_getTotalStorageUserPrefix() + 'tables_' + _db, null);
         $.totalStorage(hac_getTotalStorageUserPrefix() + 'timestamp_tables_' + _db, null);