Răsfoiți Sursa

批量添加完启动作业后,自动跳转到启动作业列表页

James Iter 9 ani în urmă
părinte
comite
15dcc549e3
2 a modificat fișierele cu 2 adăugiri și 5 ștergeri
  1. 0 4
      templates/guests_boot_jobs.html
  2. 2 1
      templates/guests_show.html

+ 0 - 4
templates/guests_boot_jobs.html

@@ -164,13 +164,9 @@
     }
 
     function refresh() {
-        keyword = $('#content_search').val();
         page = $('#pagination li.active a').text();
         page_size = $('#page_size').val();
         cur_url = resource_path + '?page=' + page + '&page_size=' + page_size;
-        if (keyword.length > 0) {
-            cur_url = resource_path + '?page=' + page + '&page_size=' + page_size + '&keyword=' + keyword;
-        }
         window.location.href=cur_url;
     }
 

+ 2 - 1
templates/guests_show.html

@@ -423,7 +423,8 @@
             },
             success : function() {
                 alter_success('启动作业添加指令发送成功!');
-                refresh();
+                window.location.href='/guests/boot_jobs_list';
+                // refresh();
             }
         });
     }