diff options
author | Michal Čihař <mcihar@suse.cz> | 2013-04-15 17:12:49 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2013-04-15 17:13:14 +0400 |
commit | a1b6f206b2cfe78e3819ef1bf1da0c78f847a2ca (patch) | |
tree | edd5812cb8dd2abf75a7548e01f548c6ac8693ed /js/indexes.js | |
parent | b9aa5280b1c1dff488a517263057a33c3c4192d8 (diff) |
Various spacing and identation fixes
Diffstat (limited to 'js/indexes.js')
-rw-r--r-- | js/indexes.js | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/js/indexes.js b/js/indexes.js index 00d754f114..a6030a4d40 100644 --- a/js/indexes.js +++ b/js/indexes.js @@ -38,7 +38,7 @@ function checkIndexType() if ($select_index_type.val() == 'SPATIAL') { // Disable and hide the size column $size_header.hide(); - $size_inputs.each(function(){ + $size_inputs.each(function (){ $(this) .prop('disabled', true) .parent('td').hide(); @@ -46,7 +46,7 @@ function checkIndexType() // Disable and hide the columns of the index other than the first one var initial = true; - $column_inputs.each(function() { + $column_inputs.each(function () { $column_input = $(this); if (! initial) { $column_input @@ -62,14 +62,14 @@ function checkIndexType() } else { // Enable and show the size column $size_header.show(); - $size_inputs.each(function() { + $size_inputs.each(function () { $(this) .prop('disabled', false) .parent('td').show(); }); // Enable and show the columns of the index - $column_inputs.each(function() { + $column_inputs.each(function () { $(this) .prop('disabled', false) .parent('td').show(); @@ -83,7 +83,7 @@ function checkIndexType() /** * Unbind all event handlers before tearing down a page */ -AJAX.registerTeardown('indexes.js', function() { +AJAX.registerTeardown('indexes.js', function () { $('#select_index_type').die('change'); $('a.drop_primary_key_index_anchor.ajax').die('click'); $("#table_index tbody tr td.edit_index.ajax, #indexes .add_index.ajax").die('click'); @@ -99,10 +99,10 @@ AJAX.registerTeardown('indexes.js', function() { * <li>create/edit/drop indexes</li> * </ul> */ -AJAX.registerOnload('indexes.js', function() { +AJAX.registerOnload('indexes.js', function () { checkIndexType(); checkIndexName("index_frm"); - $('#select_index_type').live('change', function(event){ + $('#select_index_type').live('change', function (event){ event.preventDefault(); checkIndexType(); checkIndexName("index_frm"); @@ -111,7 +111,7 @@ AJAX.registerOnload('indexes.js', function() { /** * Ajax Event handler for 'Drop Index' */ - $('a.drop_primary_key_index_anchor.ajax').live('click', function(event) { + $('a.drop_primary_key_index_anchor.ajax').live('click', function (event) { event.preventDefault(); var $anchor = $(this); /** @@ -132,15 +132,15 @@ AJAX.registerOnload('indexes.js', function() { .val() ); - $anchor.PMA_confirm(question, $anchor.attr('href'), function(url) { + $anchor.PMA_confirm(question, $anchor.attr('href'), function (url) { var $msg = PMA_ajaxShowMessage(PMA_messages['strDroppingPrimaryKeyIndex'], false); - $.get(url, {'is_js_confirmed': 1, 'ajax_request': true}, function(data) { + $.get(url, {'is_js_confirmed': 1, 'ajax_request': true}, function (data) { if (data.success === true) { PMA_ajaxRemoveMessage($msg); var $table_ref = $rows_to_hide.closest('table'); if ($rows_to_hide.length == $table_ref.find('tbody > tr').length) { // We are about to remove all rows from the table - $table_ref.hide('medium', function() { + $table_ref.hide('medium', function () { $('div.no_indexes_defined').show('medium'); $rows_to_hide.remove(); }); @@ -151,8 +151,8 @@ AJAX.registerOnload('indexes.js', function() { $rows_to_hide.hide("medium", function () { $(this).remove(); }); - } - if ($('#result_query').length) { + } + if ($('#result_query').length) { $('#result_query').remove(); } if (data.sql_query) { @@ -160,7 +160,7 @@ AJAX.registerOnload('indexes.js', function() { .html(data.sql_query) .prependTo('#page_content'); } - PMA_commonActions.refreshMain(false, function() { + PMA_commonActions.refreshMain(false, function () { $("a.ajax[href^=#indexes]").click(); }); PMA_reloadNavigation(); @@ -174,7 +174,7 @@ AJAX.registerOnload('indexes.js', function() { /** *Ajax event handler for index edit **/ - $("#table_index tbody tr td.edit_index.ajax, #indexes .add_index.ajax").live('click', function(event) { + $("#table_index tbody tr td.edit_index.ajax, #indexes .add_index.ajax").live('click', function (event) { event.preventDefault(); if ($(this).find("a").length === 0) { // Add index @@ -197,9 +197,9 @@ AJAX.registerOnload('indexes.js', function() { var title = PMA_messages['strEditIndex']; } url += "&ajax_request=true"; - indexEditorDialog(url, title, function() { + indexEditorDialog(url, title, function () { // refresh the page using ajax - PMA_commonActions.refreshMain(false, function() { + PMA_commonActions.refreshMain(false, function () { $("a.ajax[href^=#indexes]").click(); }); }); |