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/gis_data_editor.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/gis_data_editor.js')
-rw-r--r--js/gis_data_editor.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/gis_data_editor.js b/js/gis_data_editor.js
index 99dc70d529..c545be2ddb 100644
--- a/js/gis_data_editor.js
+++ b/js/gis_data_editor.js
@@ -145,7 +145,7 @@ function loadGISEditor(value, field, type, input_name, token) {
'token' : token,
'ajax_request': true
}, function(data) {
- if (data.success == true) {
+ if (data.success === true) {
$gis_editor.html(data.gis_editor);
initGISEditorVisualization();
prepareJSVersion();
@@ -192,7 +192,7 @@ function insertDataAndClose() {
var input_name = $form.find("input[name='input_name']").val();
$.post('gis_data_editor.php', $form.serialize() + "&generate=true&ajax_request=true", function(data) {
- if (data.success == true) {
+ if (data.success === true) {
$("input[name='" + input_name + "']").val(data.result);
} else {
PMA_ajaxShowMessage(data.error, false);
@@ -243,7 +243,7 @@ AJAX.registerOnload('gis_data_editor.js', function() {
$('#gis_editor').find("input[type='text']").live('change', function() {
var $form = $('form#gis_data_editor_form');
$.post('gis_data_editor.php', $form.serialize() + "&generate=true&ajax_request=true", function(data) {
- if (data.success == true) {
+ if (data.success === true) {
$('#gis_data_textarea').val(data.result);
$('#placeholder').empty().removeClass('hasSVG').html(data.visualization);
$('#openlayersmap').empty();
@@ -263,7 +263,7 @@ AJAX.registerOnload('gis_data_editor.js', function() {
var $form = $('form#gis_data_editor_form');
$.post('gis_data_editor.php', $form.serialize() + "&get_gis_editor=true&ajax_request=true", function(data) {
- if (data.success == true) {
+ if (data.success === true) {
$gis_editor.html(data.gis_editor);
initGISEditorVisualization();
prepareJSVersion();