src/search/FileFilters.js
function _handleEditFilter(e) {
        var filterSets  = PreferencesManager.get("fileFilters") || [],
            filterIndex = $(e.target).parent().data("index") - FIRST_FILTER_INDEX;

        // Don't let the click bubble upward.
        e.stopPropagation();

        // Close the dropdown first before opening the edit filter dialog
        // so that it will restore focus to the DOM element that has focus
        // prior to opening it.
        _picker.closeDropdown();

        editFilter(filterSets[filterIndex], filterIndex);
    }
function _handleEditFilter(e) {
        var filterSets  = PreferencesManager.get("fileFilters") || [],
            filterIndex = $(e.target).parent().data("index") - FIRST_FILTER_INDEX;

        // Don't let the click bubble upward.
        e.stopPropagation();

        // Close the dropdown first before opening the edit filter dialog
        // so that it will restore focus to the DOM element that has focus
        // prior to opening it.
        _picker.closeDropdown();

        editFilter(filterSets[filterIndex], filterIndex);
    }
function _handleEditFilter ( e ) { var filterSets = PreferencesManager . get ( "fileFilters" ) || [ ] , filterIndex = $ ( e . target ) . parent ( ) . data ( "index" ) - FIRST_FILTER_INDEX ; // Don't let the click bubble upward. e . stopPropagation ( ) ; // Close the dropdown first before opening the edit filter dialog // so that it will restore focus to the DOM element that has focus // prior to opening it. _picker . closeDropdown ( ) ; editFilter ( filterSets [ filterIndex ] , filterIndex ) ; }
Close filter dropdwon list and launch edit filter dialog.
@param {!Event} e Mouse events
Close filter dropdwon list and launch edit filter dialog .