Przeglądaj źródła

Moved regex note to tooltip

Saria Hajjar 6 lat temu
rodzic
commit
6a3cd83efc

+ 3 - 3
netbox/project-static/js/forms.js

@@ -400,8 +400,8 @@ $(document).ready(function() {
     window.addEventListener('hashchange', headerOffsetScroll);
 
     // Offset between the preview window and the window edges
-    const IMAGE_PREVIEW_OFFSET_X = 20
-    const IMAGE_PREVIEW_OFFSET_Y = 10
+    const IMAGE_PREVIEW_OFFSET_X = 20;
+    const IMAGE_PREVIEW_OFFSET_Y = 10;
 
     // Preview an image attachment when the link is hovered over
     $('a.image-preview').on('mouseover', function(e) {
@@ -435,6 +435,6 @@ $(document).ready(function() {
 
     // Fade the image out; it will be deleted when another one is previewed
     $('a.image-preview').on('mouseout', function() {
-        $('#image-preview-window').fadeOut('fast')
+        $('#image-preview-window').fadeOut('fast');
     });
 });

+ 1 - 1
netbox/templates/dcim/device.html

@@ -557,7 +557,7 @@
                             </button>
                         </div>
                         <div class="col-md-2 pull-right noprint">
-                            <input class="form-control interface-filter" type="text" placeholder="Filter (RegExp)" style="height: 23px" />
+                            <input class="form-control interface-filter" type="text" placeholder="Filter" title="RegEx-enabled" style="height: 23px" />
                         </div>
                     </div>
                     <table id="interfaces_table" class="table table-hover table-headings panel-body component-list">

+ 1 - 1
netbox/templates/virtualization/virtualmachine.html

@@ -255,7 +255,7 @@
                     </button>
                 </div>
                 <div class="col-md-2 pull-right noprint">
-                    <input class="form-control interface-filter" type="text" placeholder="Filter (RegExp)" style="height: 23px" />
+                    <input class="form-control interface-filter" type="text" placeholder="Filter" title="RegEx-enabled" style="height: 23px" />
                 </div>
             </div>
             <table id="interfaces_table" class="table table-hover table-headings panel-body component-list">