|
|
@ -257,11 +257,11 @@
|
|
|
|
input.css({
|
|
|
|
input.css({
|
|
|
|
'padding-right': '30px'
|
|
|
|
'padding-right': '30px'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$(input.parent()).css('right', '-33px').css('position', 'relative');
|
|
|
|
label = $('<div>Search Type<div>').css({'padding-bottom': '0.5em', 'font-size': '0.8em'})
|
|
|
|
label = $('<div>Search Type<div>').css({'padding-bottom': '0.5em', 'font-size': '0.8em'})
|
|
|
|
tooltip = $('<div class="fuzzyToolTip"></div>')
|
|
|
|
tooltip = $('<div class="fuzzyToolTip"></div>')
|
|
|
|
.css({
|
|
|
|
.css({
|
|
|
|
'position': 'absolute',
|
|
|
|
'position': 'absolute',
|
|
|
|
'right': '0px',
|
|
|
|
|
|
|
|
'top': '2em',
|
|
|
|
'top': '2em',
|
|
|
|
'background': 'white',
|
|
|
|
'background': 'white',
|
|
|
|
'border-radius': '4px',
|
|
|
|
'border-radius': '4px',
|
|
|
@ -271,9 +271,9 @@
|
|
|
|
'box-shadow': '4px 4px 4px rgba(0, 0, 0, 0.5)',
|
|
|
|
'box-shadow': '4px 4px 4px rgba(0, 0, 0, 0.5)',
|
|
|
|
'color': 'white',
|
|
|
|
'color': 'white',
|
|
|
|
'transition': 'opacity 0.25s',
|
|
|
|
'transition': 'opacity 0.25s',
|
|
|
|
'z-index': '30001'
|
|
|
|
'z-index': '30001',
|
|
|
|
|
|
|
|
'width': input.outerWidth() - 3,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.width(input.outerWidth() - 3)
|
|
|
|
|
|
|
|
.append(label).append(exact).append(fuzzy);
|
|
|
|
.append(label).append(exact).append(fuzzy);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -383,6 +383,7 @@
|
|
|
|
tooltip
|
|
|
|
tooltip
|
|
|
|
.insertAfter(toggle)
|
|
|
|
.insertAfter(toggle)
|
|
|
|
.on('mouseleave', removeToolTip);
|
|
|
|
.on('mouseleave', removeToolTip);
|
|
|
|
|
|
|
|
tooltip.css('left', input.position().left + 3)
|
|
|
|
exact.on('click', (event) => highlightButton(exact, event));
|
|
|
|
exact.on('click', (event) => highlightButton(exact, event));
|
|
|
|
fuzzy.on('click', (event) => highlightButton(fuzzy, event));
|
|
|
|
fuzzy.on('click', (event) => highlightButton(fuzzy, event));
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -394,6 +395,7 @@
|
|
|
|
tooltip
|
|
|
|
tooltip
|
|
|
|
.insertAfter(toggle)
|
|
|
|
.insertAfter(toggle)
|
|
|
|
.on('mouseleave', removeToolTip);
|
|
|
|
.on('mouseleave', removeToolTip);
|
|
|
|
|
|
|
|
tooltip.css('left', input.position().left + 3)
|
|
|
|
exact.on('click', (event) => highlightButton(exact, event))
|
|
|
|
exact.on('click', (event) => highlightButton(exact, event))
|
|
|
|
fuzzy.on('click', (event) => highlightButton(fuzzy, event))
|
|
|
|
fuzzy.on('click', (event) => highlightButton(fuzzy, event))
|
|
|
|
})
|
|
|
|
})
|
|
|
|