scinote-web/app/assets/javascripts/search.js
2017-05-08 18:00:14 +02:00

16 lines
415 B
JavaScript

(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);
}
});
});
})();