Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <mcihar@suse.cz>2013-04-15 14:03:11 +0400
committerMichal Čihař <mcihar@suse.cz>2013-04-15 14:03:11 +0400
commit020a3e1ce401163b6000022a723748721823e67a (patch)
tree0e403526607d7751d9e2fa1ff0a76076e400e983 /js/common.js
parent4f31f7fa1e6137204e502119d2890bca0d01d9c6 (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/common.js')
-rw-r--r--js/common.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/common.js b/js/common.js
index c4f4bab7ef..017a5bad6a 100644
--- a/js/common.js
+++ b/js/common.js
@@ -254,7 +254,7 @@ var PMA_querywindow = (function ($, window) {
refresh: function (url) {
if (! querywindow.closed && querywindow.location) {
var $form = $(querywindow.document).find('#sqlqueryform');
- if ($form.find('#checkbox_lock:checked').length == 0) {
+ if ($form.find('#checkbox_lock:checked').length === 0) {
PMA_querywindow.open(url);
}
}
@@ -272,7 +272,7 @@ var PMA_querywindow = (function ($, window) {
reload: function (db, table, sql_query) {
if (! querywindow.closed && querywindow.location) {
var $form = $(querywindow.document).find('#sqlqueryform');
- if ($form.find('#checkbox_lock:checked').length == 0) {
+ if ($form.find('#checkbox_lock:checked').length === 0) {
var $hiddenform = $(querywindow.document)
.find('#hiddenqueryform');
$hiddenform.find('input[name=db]').val(db);