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 15:16:01 +0400
committerMichal Čihař <mcihar@suse.cz>2013-04-15 15:25:50 +0400
commite6517db98a0a03a0430ccca8d23afbeb7d30a0fc (patch)
treed7c257e7207e2e206199e0ade8091f810b78720b /js/tbl_zoom_plot_jqplot.js
parent83c2a074a5855e073889008ff9428099c92c4b68 (diff)
More javascript cleanup, more fixes of === / !===
Diffstat (limited to 'js/tbl_zoom_plot_jqplot.js')
-rw-r--r--js/tbl_zoom_plot_jqplot.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/js/tbl_zoom_plot_jqplot.js b/js/tbl_zoom_plot_jqplot.js
index 83c7db5273..320b3bdaf2 100644
--- a/js/tbl_zoom_plot_jqplot.js
+++ b/js/tbl_zoom_plot_jqplot.js
@@ -236,7 +236,7 @@ AJAX.registerOnload('tbl_zoom_plot_jqplot.js', function() {
* Input form validation
**/
$('#inputFormSubmitId').click(function() {
- if ($('#tableid_0').get(0).selectedIndex == 0 || $('#tableid_1').get(0).selectedIndex == 0) {
+ if ($('#tableid_0').get(0).selectedIndex === 0 || $('#tableid_1').get(0).selectedIndex === 0) {
PMA_ajaxShowMessage(PMA_messages['strInputNull']);
} else if (xLabel == yLabel) {
PMA_ajaxShowMessage(PMA_messages['strSameInputs']);
@@ -352,17 +352,17 @@ AJAX.registerOnload('tbl_zoom_plot_jqplot.js', function() {
var value = newValues[key];
// null
- if (value == null) {
+ if (value === null) {
sql_query += 'NULL, ';
// empty
- } else if ($.trim(value) == '') {
+ } else if ($.trim(value) === '') {
sql_query += "'', ";
// other
} else {
// type explicitly identified
- if (sqlTypes[key] != null) {
+ if (sqlTypes[key] !== null) {
if (sqlTypes[key] == 'bit') {
sql_query += "b'" + value + "', ";
}
@@ -387,7 +387,7 @@ AJAX.registerOnload('tbl_zoom_plot_jqplot.js', function() {
'sql_query' : sql_query,
'inline_edit' : false
}, function(data) {
- if (data.success == true) {
+ if (data.success === true) {
$('#sqlqueryresults').html(data.sql_query);
$("#sqlqueryresults").trigger('appendAnchor');
} else {
@@ -429,7 +429,7 @@ AJAX.registerOnload('tbl_zoom_plot_jqplot.js', function() {
* Generate plot using jqplot
*/
- if (searchedData != null) {
+ if (searchedData !== null) {
$('#zoom_search_form')
.slideToggle()
.hide();
@@ -483,7 +483,7 @@ AJAX.registerOnload('tbl_zoom_plot_jqplot.js', function() {
};
// If data label is not set, do not show tooltips
- if (dataLabel == '') {
+ if (dataLabel === '') {
options.highlighter.show = false;
}
@@ -590,7 +590,7 @@ AJAX.registerOnload('tbl_zoom_plot_jqplot.js', function() {
for (key in data.row_info) {
$field = $('#edit_fieldID_' + field_id);
$field_null = $('#edit_fields_null_id_' + field_id);
- if (data.row_info[key] == null) {
+ if (data.row_info[key] === null) {
$field_null.prop('checked', true);
$field.val('');
} else {