scinote-web/app/assets/javascripts/search.js

17 lines
415 B
JavaScript
Raw Normal View History

2017-05-09 00:00:14 +08:00
(function() {
'use strict';
$(document.body).ready(function() {
$('#search_whole_word').click(function() {
if ($(this).prop('checked') === true) {
$('#search_whole_phrase').prop('checked', false);
}
});
$('#search_whole_phrase').click(function() {
if ($(this).prop('checked') === true) {
$('#search_whole_word').prop('checked', false);
}
});
2017-05-05 22:41:23 +08:00
});
2017-05-09 00:00:14 +08:00
})();