diff options
author | Michal Čihař <mcihar@suse.cz> | 2013-04-15 14:03:11 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2013-04-15 14:03:11 +0400 |
commit | 020a3e1ce401163b6000022a723748721823e67a (patch) | |
tree | 0e403526607d7751d9e2fa1ff0a76076e400e983 /js/db_search.js | |
parent | 4f31f7fa1e6137204e502119d2890bca0d01d9c6 (diff) |
Use type cast safe comparison
The values like true, '' or 0 could compare to lot of other stuff with
type casting.
Diffstat (limited to 'js/db_search.js')
-rw-r--r-- | js/db_search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/db_search.js b/js/db_search.js index 495abadc38..f2a5178bd1 100644 --- a/js/db_search.js +++ b/js/db_search.js @@ -194,7 +194,7 @@ AJAX.registerOnload('db_search.js', function() { var url = $form.serialize() + "&submit_search=" + $("#buttonGo").val(); $.post($form.attr('action'), url, function(data) { - if (data.success == true) { + if (data.success === true) { // found results $("#searchresults").html(data.message); |