Sfoglia il codice sorgente

feat: 修改资料管理弹窗图标

caipin 1 giorno fa
parent
commit
6186fd6501
1 ha cambiato i file con 6 aggiunte e 4 eliminazioni
  1. 6 4
      app/public/js/config_dir.js

+ 6 - 4
app/public/js/config_dir.js

@@ -1059,10 +1059,11 @@ $(document).ready(function() {
                 if (hasChildren) {
                     html.push('<a href="javascript:void(0);" class="cd-auth-target-toggle mr-1" data-tree-id="' + node.tree_id + '">');
                     html.push('<i class="fa ' + (self._authTargetExpanded[node.tree_id] ? 'fa-minus-square-o' : 'fa-plus-square-o') + '"></i></a>');
-                    html.push('<i class="fa fa-folder-open text-warning mr-1 cd-auth-target-folder" data-tree-id="' + node.tree_id + '"></i>');
+                    html.push('<img class="mr-1 cd-auth-target-folder" data-tree-id="' + node.tree_id +
+                        '" src="/public/images/filesjs-tree-open.png" width="18" height="18" alt="">');
                 } else {
                     html.push('<span class="d-inline-block mr-1" style="width:12px;"></span>');
-                    html.push('<i class="fa fa-file-o text-primary mr-1"></i>');
+                    html.push('<img class="mr-1" src="/public/images/filesjs-tree-leaf.png" width="18" height="18" alt="">');
                 }
                 html.push(self._escapeAuthUserHtml(node.name) + '</td></tr>');
             });
@@ -1096,8 +1097,9 @@ $(document).ready(function() {
                     .toggleClass('fa-minus-square-o', expanded)
                     .toggleClass('fa-plus-square-o', !expanded);
                 $('#cd-auth-target-list .cd-auth-target-folder[data-tree-id="' + node.tree_id + '"]')
-                    .toggleClass('fa-folder-open', expanded)
-                    .toggleClass('fa-folder', !expanded);
+                    .attr('src', expanded
+                        ? '/public/images/filesjs-tree-open.png'
+                        : '/public/images/filesjs-tree-closed.png');
             });
         }