From 1d3dcde27e98fdce1191c58749a157064b168a70 Mon Sep 17 00:00:00 2001 From: Zhangxinguo <1245579343@qq.com> Date: Mon, 12 Jun 2017 20:13:53 +0800 Subject: [PATCH] refactor code for esjob Locale --- .../src/main/resources/console/js/app/add_app.js | 1 - .../src/main/resources/console/js/app/apps_overview.js | 1 + .../src/main/resources/console/js/app/modify_app.js | 1 - .../src/main/resources/console/js/job/add_job.js | 1 - .../src/main/resources/console/js/job/modify_job.js | 1 - 5 files changed, 1 insertion(+), 4 deletions(-) diff --git a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/app/add_app.js b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/app/add_app.js index 09db9e7c6f..03cd792e50 100644 --- a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/app/add_app.js +++ b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/app/add_app.js @@ -1,5 +1,4 @@ $(function() { - tooltipLocale(); validate(); submitConfirm("post", $("#data-add-app")); }); diff --git a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/app/apps_overview.js b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/app/apps_overview.js index cd1dc21de7..0c1cdb5fcf 100644 --- a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/app/apps_overview.js +++ b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/app/apps_overview.js @@ -81,6 +81,7 @@ function bindModifyAppButton() { $(".box-body").remove(); $("#update-app-body").load("html/app/modify_app.html", null, function() { doLocale(); + tooltipLocale(); renderApp(result); $("#data-update-app").modal({backdrop : "static", keyboard : true}); }); diff --git a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/app/modify_app.js b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/app/modify_app.js index 32cbb3be06..01f53a4077 100644 --- a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/app/modify_app.js +++ b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/app/modify_app.js @@ -1,5 +1,4 @@ $(function() { - tooltipLocale(); validate(); submitConfirm("put", $("#data-update-app")); }); diff --git a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/add_job.js b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/add_job.js index 50872e85f7..c4be5eeb62 100644 --- a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/add_job.js +++ b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/add_job.js @@ -1,5 +1,4 @@ $(function() { - tooltipLocale(); validate(); dataControl(); submitConfirm("post", "/api/job/register", $("#data-add-job")); diff --git a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/modify_job.js b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/modify_job.js index a5d9285de8..9a3f596ce6 100644 --- a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/modify_job.js +++ b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/modify_job.js @@ -1,5 +1,4 @@ $(function() { - tooltipLocale(); validate(); dataControl(); submitConfirm("put", "/api/job/update", $("#data-update-job"));