template fsconfig.html: using string provider name in onFilesystemChanged()

This commit is contained in:
Manuel Reithuber
2021-06-05 18:29:34 +02:00
committed by Nicola Murino
parent fd4c388b23
commit 13f23838a1
3 changed files with 8 additions and 8 deletions

View File

@@ -99,7 +99,7 @@
{{define "extra_js"}}
<script type="text/javascript">
$(document).ready(function () {
onFilesystemChanged('{{.Folder.FsConfig.Provider}}');
onFilesystemChanged('{{.Folder.FsConfig.Provider.Name}}');
$("body").on("click", ".add_new_tpl_folder_field_btn", function () {
var index = $(".form_field_tpl_folders_outer").find(".form_field_tpl_folder_outer_row").length;