File tree Expand file tree Collapse file tree 2 files changed +1
-25
lines changed Expand file tree Collapse file tree 2 files changed +1
-25
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"globals" : {
3
- "GitImport" : true , // local git_import.js
4
- "miqHideSearchClearButton" : true // local miq_application.js
3
+ "GitImport" : true // local git_import.js
5
4
},
6
5
"rules" : {
7
6
"key-spacing" : [" error" , {
Original file line number Diff line number Diff line change @@ -1309,29 +1309,6 @@ window.miqInitMainContent = function() {
1309
1309
$ ( '#main-content' ) . css ( 'height' , `calc(100% - ${ height } px)` ) ;
1310
1310
} ;
1311
1311
1312
- window . miqHideSearchClearButton = function ( explorer ) {
1313
- // Hide the clear button if the search input is empty
1314
- $ ( '.search-pf .has-clear .clear' ) . each ( function ( ) {
1315
- if ( ! $ ( this ) . prev ( '.form-control' ) . val ( ) ) {
1316
- $ ( this ) . hide ( ) ;
1317
- }
1318
- } ) ;
1319
- // Show the clear button upon entering text in the search input
1320
- $ ( '.search-pf .has-clear .form-control' ) . keyup ( function ( ) {
1321
- const t = $ ( this ) ;
1322
- t . nextAll ( 'button.clear' ) . toggle ( Boolean ( t . val ( ) ) ) ;
1323
- } ) ;
1324
- // Upon clicking the clear button, empty the entered text and hide the clear button
1325
- $ ( '.search-pf .has-clear .clear' ) . click ( function ( ) {
1326
- $ ( this ) . prev ( '.form-control' ) . val ( '' ) . focus ( ) ;
1327
- $ ( this ) . hide ( ) ;
1328
- // Clear Search text values as well
1329
- const url = `/${ ManageIQ . controller } /search_clear` + `?in_explorer=${ explorer } ` ;
1330
- ManageIQ . gridChecks = [ ] ;
1331
- miqJqueryRequest ( url ) ;
1332
- } ) ;
1333
- } ;
1334
-
1335
1312
window . toggle_expansion = function ( link ) {
1336
1313
link = $ ( link ) ;
1337
1314
link . find ( 'i' ) . toggleClass ( 'fa-angle-right fa-angle-down' ) ;
You can’t perform that action at this time.
0 commit comments