dwiyatci/jquery-searchinput — pull request #1 by mewsoft (2014-11-28 22:51:44+00:00)
Title: Show search magnify optionally, show clear on page load

In this update:

1)- Fixed clear icon show when page loads and the input field has a text like:

2)- Fixed MutationObserver error in Internet explorer 10 which does not exist by adding:

function nop() { }
if (!window.MutationObserver) {
window.MutationObserver = function () {
this.observe = nop;
this.disconnect = nop;
};
}

3)- Added option settings to show/hide the search magnify image if for example the input field is not used for search, this is good to use the clear button only for regular text fields:

To show the search icon magnify image:

$('.clearable').clearInput({'magnify' : true});

To hide the search icon magnify image:

$('.clearable').clearInput({'magnify' : false});

4)- disable clear button in Internet Explorer 10 'x' by adding css: