diff options
author | Michal Čihař <mcihar@suse.cz> | 2013-07-30 16:22:48 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2013-07-30 16:36:43 +0400 |
commit | 61cf2c4cc986c7a06fb0542e6d9469ae978f2422 (patch) | |
tree | 48b24f4e894cd73b9f617b20a068f919059dd620 /js/tbl_chart.js | |
parent | 425d9f466e43a4ae6bb3832707a027e7793fa4b5 (diff) |
Various coding style improvements
Diffstat (limited to 'js/tbl_chart.js')
-rw-r--r-- | js/tbl_chart.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/js/tbl_chart.js b/js/tbl_chart.js index c555a6dc35..51b4f397e6 100644 --- a/js/tbl_chart.js +++ b/js/tbl_chart.js @@ -54,9 +54,10 @@ AJAX.registerOnload('tbl_chart.js', function () { $('input[name="chartType"]').click(function () { currentSettings.type = $(this).val(); drawChart(); - if ($(this).val() == 'bar' || $(this).val() == 'column' - || $(this).val() == 'line' || $(this).val() == 'area' - || $(this).val() == 'timeline' || $(this).val() == 'spline') { + if ($(this).val() == 'bar' || $(this).val() == 'column' || + $(this).val() == 'line' || $(this).val() == 'area' || + $(this).val() == 'timeline' || $(this).val() == 'spline' + ) { $('span.barStacked').show(); } else { $('span.barStacked').hide(); @@ -151,8 +152,9 @@ AJAX.registerOnload('tbl_chart.js', function () { * */ $("#tblchartform").live('submit', function (event) { - if (!checkFormElementInRange(this, 'session_max_rows', PMA_messages.strNotValidRowNumber, 1) - || !checkFormElementInRange(this, 'pos', PMA_messages.strNotValidRowNumber, 0 - 1)) { + if (!checkFormElementInRange(this, 'session_max_rows', PMA_messages.strNotValidRowNumber, 1) || + !checkFormElementInRange(this, 'pos', PMA_messages.strNotValidRowNumber, 0 - 1) + ) { return false; } |