Arthur 1 개월 전
부모
커밋
24642be351
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 0 0
      netbox/project-static/dist/netbox.js.map
  2. 3 0
      netbox/project-static/src/select/classes/dynamicTomSelect.ts

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
netbox/project-static/dist/netbox.js.map


+ 3 - 0
netbox/project-static/src/select/classes/dynamicTomSelect.ts

@@ -77,6 +77,8 @@ export class DynamicTomSelect extends TomSelect {
 
 
     const currentValue = self.getValue();
     const currentValue = self.getValue();
 
 
+    // Automatically clear any cached options. (Only options included
+    // in the API response should be present.)
     self.clearOptions();
     self.clearOptions();
 
 
     // Clear user_options to prevent the pre-selected option from being treated specially
     // Clear user_options to prevent the pre-selected option from being treated specially
@@ -86,6 +88,7 @@ export class DynamicTomSelect extends TomSelect {
       self.addOption(self.nullOption);
       self.addOption(self.nullOption);
     }
     }
 
 
+    // Get the API request URL. If none is provided, abort as no request can be made.
     const url = self.getRequestUrl(value);
     const url = self.getRequestUrl(value);
     if (!url) {
     if (!url) {
       return;
       return;

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.