Remove an unused file

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-06-12 15:09:07 +09:00
parent fad62d812f
commit b642961fdb
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1
2 changed files with 0 additions and 63 deletions

View File

@ -1,62 +0,0 @@
import "lodash/lodash"
$(document).ready(() => {
let configUrl = (name) => {
return `/daemon/setting/${name}/configure`
}
function ownedSectionOnChange() {
const pluginName = _.last(document.documentURI.replace(/\/configure$/, "").split("/"))
$("#buffer-section select").on("change", (event) => {
$.ajax({
url: configUrl(pluginName),
method: "GET",
data: {
buffer_type: $(event.target).val()
}
}).then((data) => {
$("#buffer-section").html($(data).find("#buffer-section").html())
ownedSectionOnChange()
})
})
$("#storage-section select").on("change", (event) => {
$.ajax({
url: configUrl(pluginName),
method: "GET",
data: {
storage_type: $(event.target).val()
}
}).then((data) => {
$("#storage-section").html($(data).find("#storage-section").html())
ownedSectionOnChange()
})
})
$("#parse-section select").on("change", (event) => {
$.ajax({
url: configUrl(pluginName),
method: "GET",
data: {
parse_type: $(event.target).val()
}
}).then((data) => {
$("#parse-section").html($(data).find("#parse-section").html())
ownedSectionOnChange()
})
})
$("#format-section select").on("change", (event) => {
$.ajax({
url: configUrl(pluginName),
method: "GET",
data: {
format_type: $(event.target).val()
}
}).then((data) => {
$("#format-section").html($(data).find("#format-section").html())
ownedSectionOnChange()
})
})
}
ownedSectionOnChange()
})

View File

@ -1,6 +1,5 @@
- page_title t("fluentd.settings.#{target_plugin_name}.show.page_title")
- add_javascript_pack_tag("nested_settings")
- add_javascript_pack_tag("owned_plugin_section")
.card.mb-3
.card-body.bg-light