Arthur 2 ماه پیش
والد
کامیت
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();
 
+    // Automatically clear any cached options. (Only options included
+    // in the API response should be present.)
     self.clearOptions();
 
     // 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);
     }
 
+    // Get the API request URL. If none is provided, abort as no request can be made.
     const url = self.getRequestUrl(value);
     if (!url) {
       return;

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است