@@ -11,9 +11,7 @@ function dismissAddAnotherPopup(win, ip_address) {
1111 win . close ( ) ;
1212 var id = normalizeIP ( ip_address ) ;
1313 var host = django . jQuery ( "#addr_" + id ) ;
14- host . replaceWith (
15- '<a class="used" id="addr_' + id + '">' + ip_address + "</a>" ,
16- ) ;
14+ host . replaceWith ( '<a class="used" id="addr_' + id + '">' + ip_address + "</a>" ) ;
1715}
1816
1917django . jQuery ( function ( $ ) {
@@ -100,8 +98,7 @@ function initHostsInfiniteScroll(
10098 }
10199 $ . ajax ( {
102100 type : "GET" ,
103- url :
104- "/api/v1/ipam/subnet/" + current_subnet + "/hosts/?start=" + ip_address ,
101+ url : "/api/v1/ipam/subnet/" + current_subnet + "/hosts/?start=" + ip_address ,
105102 success : function ( res ) {
106103 callback ( res . results [ 0 ] . address === ip_address ) ;
107104 } ,
@@ -119,10 +116,7 @@ function initHostsInfiniteScroll(
119116 if ( input !== searchQuery ) {
120117 searchQuery = input ;
121118 nextPageUrl =
122- "/api/v1/ipam/subnet/" +
123- current_subnet +
124- "/hosts/?start=" +
125- searchQuery ;
119+ "/api/v1/ipam/subnet/" + current_subnet + "/hosts/?start=" + searchQuery ;
126120 $ ( "#subnet-visual" ) . empty ( ) ;
127121 fetchedPages = [ ] ;
128122 lastRenderedPage = 0 ;
@@ -176,9 +170,7 @@ function initHostsInfiniteScroll(
176170 busy = true ;
177171 if ( lastRenderedPage > renderedPages ) {
178172 $ ( "#subnet-visual div:last" ) . remove ( ) ;
179- var addedDiv = pageContainer (
180- fetchedPages [ lastRenderedPage - renderedPages - 1 ] ,
181- ) ;
173+ var addedDiv = pageContainer ( fetchedPages [ lastRenderedPage - renderedPages - 1 ] ) ;
182174 $ ( "#subnet-visual" ) . prepend ( addedDiv ) ;
183175 $ ( "#subnet-visual" ) . scrollTop (
184176 $ ( "#subnet-visual" ) . scrollTop ( ) + addedDiv . height ( ) ,
0 commit comments