Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Apr 21, 2012
2 parents 0b3ef72 + 5c6f742 commit 0c4b876
Show file tree
Hide file tree
Showing 32 changed files with 81 additions and 81 deletions.
2 changes: 1 addition & 1 deletion js/db_operations.js
Expand Up @@ -18,7 +18,7 @@
* Change charset * Change charset
*/ */


$(document).ready(function() { $(function() {


/** /**
* Ajax event handlers for 'Rename Database' * Ajax event handlers for 'Rename Database'
Expand Down
8 changes: 4 additions & 4 deletions js/db_search.js
Expand Up @@ -26,7 +26,7 @@
*/ */
function loadResult(result_path, table_name, link, ajaxEnable) function loadResult(result_path, table_name, link, ajaxEnable)
{ {
$(document).ready(function() { $(function() {
if(ajaxEnable) { if(ajaxEnable) {
/** Hides the results shown by the delete criteria */ /** Hides the results shown by the delete criteria */
var $msg = PMA_ajaxShowMessage(); var $msg = PMA_ajaxShowMessage();
Expand Down Expand Up @@ -64,7 +64,7 @@ function loadResult(result_path, table_name, link, ajaxEnable)
*/ */
function deleteResult(result_path, msg, ajaxEnable) function deleteResult(result_path, msg, ajaxEnable)
{ {
$(document).ready(function() { $(function() {
/** Hides the results shown by the browse criteria */ /** Hides the results shown by the browse criteria */
$("#table-info").hide(); $("#table-info").hide();
$('#browse-results').hide(); $('#browse-results').hide();
Expand Down Expand Up @@ -94,7 +94,7 @@ function deleteResult(result_path, msg, ajaxEnable)
}); });
} }


$(document).ready(function() { $(function() {
/** Hide the table link in the initial search result */ /** Hide the table link in the initial search result */
var icon = PMA_getImage('s_tbl.png', '', {'id': 'table-image'}).toString(); var icon = PMA_getImage('s_tbl.png', '', {'id': 'table-image'}).toString();
$("#table-info").prepend(icon).hide(); $("#table-info").prepend(icon).hide();
Expand Down Expand Up @@ -225,4 +225,4 @@ $(document).ready(function() {
PMA_ajaxRemoveMessage($msgbox); PMA_ajaxRemoveMessage($msgbox);
}) })
}) })
}, 'top.frame_content'); // end $(document).ready() }, 'top.frame_content'); // end $()
4 changes: 2 additions & 2 deletions js/db_structure.js
Expand Up @@ -117,7 +117,7 @@ function PMA_adjustTotals() {
$summary.find('.tbl_overhead').text(overheadSum + " " + byteUnits[overhead_magnitude]); $summary.find('.tbl_overhead').text(overheadSum + " " + byteUnits[overhead_magnitude]);
} }


$(document).ready(function() { $(function() {
/** /**
* Ajax Event handler for 'Insert Table' * Ajax Event handler for 'Insert Table'
* *
Expand Down Expand Up @@ -488,4 +488,4 @@ $(document).ready(function() {
return false; return false;
}) //end Calculate Real End for InnoDB }) //end Calculate Real End for InnoDB


}, 'top.frame_content'); // end $(document).ready() }, 'top.frame_content'); // end $()
18 changes: 9 additions & 9 deletions js/export.js
Expand Up @@ -8,7 +8,7 @@
* Toggles the hiding and showing of each plugin's options * Toggles the hiding and showing of each plugin's options
* according to the currently selected plugin from the dropdown list * according to the currently selected plugin from the dropdown list
*/ */
$(document).ready(function() { $(function() {
$("#plugins").change(function() { $("#plugins").change(function() {
$("#format_specific_opts div.format_specific_options").hide(); $("#format_specific_opts div.format_specific_options").hide();
var selected_plugin_name = $("#plugins option:selected").val(); var selected_plugin_name = $("#plugins option:selected").val();
Expand All @@ -19,7 +19,7 @@ $(document).ready(function() {
/** /**
* Toggles the enabling and disabling of the SQL plugin's comment options that apply only when exporting structure * Toggles the enabling and disabling of the SQL plugin's comment options that apply only when exporting structure
*/ */
$(document).ready(function() { $(function() {
$("input[type='radio'][name='sql_structure_or_data']").change(function() { $("input[type='radio'][name='sql_structure_or_data']").change(function() {
var comments_are_present = $("#checkbox_sql_include_comments").prop("checked"); var comments_are_present = $("#checkbox_sql_include_comments").prop("checked");
var show = $("input[type='radio'][name='sql_structure_or_data']:checked").val(); var show = $("input[type='radio'][name='sql_structure_or_data']:checked").val();
Expand Down Expand Up @@ -65,7 +65,7 @@ function toggle_structure_data_opts(pluginName)
} }
} }


$(document).ready(function() { $(function() {
$("input[type='radio'][name='latex_structure_or_data']").change(function() { $("input[type='radio'][name='latex_structure_or_data']").change(function() {
toggle_structure_data_opts("latex"); toggle_structure_data_opts("latex");
}); });
Expand Down Expand Up @@ -99,7 +99,7 @@ function toggle_save_to_file()
} }
} }


$(document).ready(function() { $(function() {
toggle_save_to_file(); toggle_save_to_file();
$("input[type='radio'][name='output_format']").change(toggle_save_to_file); $("input[type='radio'][name='output_format']").change(toggle_save_to_file);
}); });
Expand Down Expand Up @@ -128,7 +128,7 @@ function toggle_sql_include_comments()
/** /**
* For SQL plugin, if "CREATE TABLE options" is checked/unchecked, check/uncheck each of its sub-options * For SQL plugin, if "CREATE TABLE options" is checked/unchecked, check/uncheck each of its sub-options
*/ */
$(document).ready(function() { $(function() {
var $create = $("#checkbox_sql_create_table_statements"); var $create = $("#checkbox_sql_create_table_statements");
var $create_options = $("#ul_create_table_statements input"); var $create_options = $("#ul_create_table_statements input");
$create.change(function() { $create.change(function() {
Expand All @@ -144,7 +144,7 @@ $(document).ready(function() {
/** /**
* Disables the view output as text option if the output must be saved as a file * Disables the view output as text option if the output must be saved as a file
*/ */
$(document).ready(function() { $(function() {
$("#plugins").change(function() { $("#plugins").change(function() {
var active_plugin = $("#plugins option:selected").val(); var active_plugin = $("#plugins option:selected").val();
var force_file = $("#force_file_" + active_plugin).val(); var force_file = $("#force_file_" + active_plugin).val();
Expand Down Expand Up @@ -178,15 +178,15 @@ function toggle_quick_or_custom()
} }
} }


$(document).ready(function() { $(function() {
$("input[type='radio'][name='quick_or_custom']").change(toggle_quick_or_custom); $("input[type='radio'][name='quick_or_custom']").change(toggle_quick_or_custom);
}); });


/** /**
* Sets up the interface for Javascript-enabled browsers since the default is for * Sets up the interface for Javascript-enabled browsers since the default is for
* Javascript-disabled browsers * Javascript-disabled browsers
*/ */
$(document).ready(function() { $(function() {
if ($("input[type='hidden'][name='export_method']").val() != "custom-no-form") { if ($("input[type='hidden'][name='export_method']").val() != "custom-no-form") {
$("#quick_or_custom").show(); $("#quick_or_custom").show();
} }
Expand All @@ -208,7 +208,7 @@ $(document).ready(function() {
/** /**
* Disables the "Dump some row(s)" sub-options when it is not selected * Disables the "Dump some row(s)" sub-options when it is not selected
*/ */
$(document).ready(function() { $(function() {
$("input[type='radio'][name='allrows']").change(function() { $("input[type='radio'][name='allrows']").change(function() {
if ($("input[type='radio'][name='allrows']").prop("checked")) { if ($("input[type='radio'][name='allrows']").prop("checked")) {
$("label[for='limit_to']").fadeTo('fast', 0.4); $("label[for='limit_to']").fadeTo('fast', 0.4);
Expand Down
54 changes: 27 additions & 27 deletions js/functions.js
Expand Up @@ -533,7 +533,7 @@ function checkTableEditForm(theForm, fieldsCnt)
return true; return true;
} // enf of the 'checkTableEditForm()' function } // enf of the 'checkTableEditForm()' function


$(document).ready(function() { $(function() {
/** /**
* Row marking in horizontal mode (use "live" so that it works also for * Row marking in horizontal mode (use "live" so that it works also for
* next pages reached via AJAX); a tr may have the class noclick to remove * next pages reached via AJAX); a tr may have the class noclick to remove
Expand Down Expand Up @@ -654,7 +654,7 @@ var last_shift_clicked_row = -1;
* Row highlighting in horizontal mode (use "live" * Row highlighting in horizontal mode (use "live"
* so that it works also for pages reached via AJAX) * so that it works also for pages reached via AJAX)
*/ */
/*$(document).ready(function() { /*$(function() {
$('tr.odd, tr.even').live('hover',function(event) { $('tr.odd, tr.even').live('hover',function(event) {
var $tr = $(this); var $tr = $(this);
$tr.toggleClass('hover',event.type=='mouseover'); $tr.toggleClass('hover',event.type=='mouseover');
Expand Down Expand Up @@ -1070,7 +1070,7 @@ function pdfPaperSize(format, axis)
/** /**
* Jquery Coding for inline editing SQL_QUERY * Jquery Coding for inline editing SQL_QUERY
*/ */
$(document).ready(function() { $(function() {
$("a.inline_edit_sql").live('click', function() { $("a.inline_edit_sql").live('click', function() {
if ($('#sql_query_edit').length) { if ($('#sql_query_edit').length) {
// An inline query editor is already open, // An inline query editor is already open,
Expand Down Expand Up @@ -1330,7 +1330,7 @@ function PMA_ajaxRemoveMessage($this_msgbox)
} }
} }


$(document).ready(function() { $(function() {
/** /**
* Allows the user to dismiss a notification * Allows the user to dismiss a notification
* created with PMA_ajaxShowMessage() * created with PMA_ajaxShowMessage()
Expand Down Expand Up @@ -1935,7 +1935,7 @@ jQuery.fn.PMA_sort_table = function(text_selector) {
* *
* Attach Ajax Event handlers for Create Table * Attach Ajax Event handlers for Create Table
*/ */
$(document).ready(function() { $(function() {


/** /**
* Attach event handler to the submit action of the create table minimal form * Attach event handler to the submit action of the create table minimal form
Expand Down Expand Up @@ -2100,7 +2100,7 @@ $(document).ready(function() {
* jQuery coding for 'Table operations'. Used on tbl_operations.php * jQuery coding for 'Table operations'. Used on tbl_operations.php
* Attach Ajax Event handlers for Table operations * Attach Ajax Event handlers for Table operations
*/ */
$(document).ready(function() { $(function() {
/** /**
*Ajax action for submitting the "Alter table order by" *Ajax action for submitting the "Alter table order by"
**/ **/
Expand Down Expand Up @@ -2222,7 +2222,7 @@ $(document).ready(function() {
* *
* @see $cfg['AjaxEnable'] * @see $cfg['AjaxEnable']
*/ */
$(document).ready(function() { $(function() {
$("#drop_db_anchor").live('click', function(event) { $("#drop_db_anchor").live('click', function(event) {
event.preventDefault(); event.preventDefault();


Expand All @@ -2244,15 +2244,15 @@ $(document).ready(function() {
}); // end $.get() }); // end $.get()
}); // end $.PMA_confirm() }); // end $.PMA_confirm()
}); //end of Drop Database Ajax action }); //end of Drop Database Ajax action
}); // end of $(document).ready() for Drop Database }); // end of $() for Drop Database


/** /**
* Attach Ajax event handlers for 'Create Database'. Used wherever libraries/ * Attach Ajax event handlers for 'Create Database'. Used wherever libraries/
* display_create_database.lib.php is used, ie main.php and server_databases.php * display_create_database.lib.php is used, ie main.php and server_databases.php
* *
* @see $cfg['AjaxEnable'] * @see $cfg['AjaxEnable']
*/ */
$(document).ready(function() { $(function() {


$('#create_database_form.ajax').live('submit', function(event) { $('#create_database_form.ajax').live('submit', function(event) {
event.preventDefault(); event.preventDefault();
Expand Down Expand Up @@ -2288,12 +2288,12 @@ $(document).ready(function() {
} }
}); // end $.post() }); // end $.post()
}); // end $().live() }); // end $().live()
}); // end $(document).ready() for Create Database }); // end $() for Create Database


/** /**
* Attach Ajax event handlers for 'Change Password' on main.php * Attach Ajax event handlers for 'Change Password' on main.php
*/ */
$(document).ready(function() { $(function() {


/** /**
* Attach Ajax event handler on the change password anchor * Attach Ajax event handler on the change password anchor
Expand Down Expand Up @@ -2379,13 +2379,13 @@ $(document).ready(function() {
* *
* @see $cfg['AjaxEnable'] * @see $cfg['AjaxEnable']
*/ */
}); // end $(document).ready() for Change Password }); // end $() for Change Password


/** /**
* Toggle the hiding/showing of the "Open in ENUM/SET editor" message when * Toggle the hiding/showing of the "Open in ENUM/SET editor" message when
* the page loads and when the selected data type changes * the page loads and when the selected data type changes
*/ */
$(document).ready(function() { $(function() {
// is called here for normal page loads and also when opening // is called here for normal page loads and also when opening
// the Create table dialog // the Create table dialog
PMA_verifyColumnsProperties(); PMA_verifyColumnsProperties();
Expand Down Expand Up @@ -2450,7 +2450,7 @@ var $enum_editor_dialog = null;
/** /**
* Opens the ENUM/SET editor and controls its functions * Opens the ENUM/SET editor and controls its functions
*/ */
$(document).ready(function() { $(function() {
$("a.open_enum_editor").live('click', function() { $("a.open_enum_editor").live('click', function() {
// Get the name of the column that is being edited // Get the name of the column that is being edited
var colname = $(this).closest('tr').find('input:first').val(); var colname = $(this).closest('tr').find('input:first').val();
Expand Down Expand Up @@ -2623,7 +2623,7 @@ $(document).ready(function() {
}); });
}); });


$(document).ready(function() { $(function() {
PMA_convertFootnotesToTooltips(); PMA_convertFootnotesToTooltips();
}); });


Expand Down Expand Up @@ -3020,7 +3020,7 @@ $(window).load(function () {
/** /**
* Vertical pointer * Vertical pointer
*/ */
$(document).ready(function() { $(function() {
$('.vpointer').live('hover', $('.vpointer').live('hover',
//handlerInOut //handlerInOut
function(e) { function(e) {
Expand All @@ -3030,9 +3030,9 @@ $(document).ready(function() {
$('.vpointer').filter('.row_' + row_num).toggleClass('hover'); $('.vpointer').filter('.row_' + row_num).toggleClass('hover');
} }
); );
}); // end of $(document).ready() for vertical pointer }); // end of $() for vertical pointer


$(document).ready(function() { $(function() {
/** /**
* Vertical marker * Vertical marker
*/ */
Expand Down Expand Up @@ -3130,7 +3130,7 @@ $(document).ready(function() {
window.parent.frame_navigation.PMA_reloadRecentTable(); window.parent.frame_navigation.PMA_reloadRecentTable();
} }
}); });
}); // end of $(document).ready() }); // end of $()


/** /**
* Creates a message inside an object with a sliding effect * Creates a message inside an object with a sliding effect
Expand Down Expand Up @@ -3215,7 +3215,7 @@ function PMA_slidingMessage(msg, $obj)
* *
* @see $cfg['AjaxEnable'] * @see $cfg['AjaxEnable']
*/ */
$(document).ready(function() { $(function() {
$("#drop_tbl_anchor").live('click', function(event) { $("#drop_tbl_anchor").live('click', function(event) {
event.preventDefault(); event.preventDefault();


Expand All @@ -3237,14 +3237,14 @@ $(document).ready(function() {
}); // end $.get() }); // end $.get()
}); // end $.PMA_confirm() }); // end $.PMA_confirm()
}); //end of Drop Table Ajax action }); //end of Drop Table Ajax action
}); // end of $(document).ready() for Drop Table }); // end of $() for Drop Table


/** /**
* Attach Ajax event handlers for Truncate Table. * Attach Ajax event handlers for Truncate Table.
* *
* @see $cfg['AjaxEnable'] * @see $cfg['AjaxEnable']
*/ */
$(document).ready(function() { $(function() {
$("#truncate_tbl_anchor.ajax").live('click', function(event) { $("#truncate_tbl_anchor.ajax").live('click', function(event) {
event.preventDefault(); event.preventDefault();


Expand Down Expand Up @@ -3279,12 +3279,12 @@ $(document).ready(function() {
}); // end $.get() }); // end $.get()
}); // end $.PMA_confirm() }); // end $.PMA_confirm()
}); //end of Truncate Table Ajax action }); //end of Truncate Table Ajax action
}); // end of $(document).ready() for Truncate Table }); // end of $() for Truncate Table


/** /**
* Attach CodeMirror2 editor to SQL edit area. * Attach CodeMirror2 editor to SQL edit area.
*/ */
$(document).ready(function() { $(function() {
var elm = $('#sqlquery'); var elm = $('#sqlquery');
if (elm.length > 0 && typeof CodeMirror != 'undefined') { if (elm.length > 0 && typeof CodeMirror != 'undefined') {
codemirror_editor = CodeMirror.fromTextArea(elm[0], { codemirror_editor = CodeMirror.fromTextArea(elm[0], {
Expand Down Expand Up @@ -3407,7 +3407,7 @@ loadJavascript=function(file) {
} }
}; };


$(document).ready(function() { $(function() {
/** /**
* Theme selector. * Theme selector.
*/ */
Expand Down Expand Up @@ -3478,14 +3478,14 @@ function printPage()
} }
} }


$(document).ready(function() { $(function() {
$('input#print').click(printPage); $('input#print').click(printPage);
}); });


/** /**
* Makes the breadcrumbs and the menu bar float at the top of the viewport * Makes the breadcrumbs and the menu bar float at the top of the viewport
*/ */
$(document).ready(function () { $(function () {
if ($("#floating_menubar").length && $('#PMA_disable_floating_menubar').length == 0) { if ($("#floating_menubar").length && $('#PMA_disable_floating_menubar').length == 0) {
$("#floating_menubar") $("#floating_menubar")
.css({ .css({
Expand Down
2 changes: 1 addition & 1 deletion js/gis_data_editor.js
Expand Up @@ -200,7 +200,7 @@ function insertDataAndClose() {
closeGISEditor(); closeGISEditor();
} }


$(document).ready(function() { $(function() {


// Remove the class that is added due to the URL being too long. // Remove the class that is added due to the URL being too long.
$('span.open_gis_editor a').removeClass('formLinkSubmit'); $('span.open_gis_editor a').removeClass('formLinkSubmit');
Expand Down
2 changes: 1 addition & 1 deletion js/import.js
Expand Up @@ -43,7 +43,7 @@ function matchFile(fname)
} }
} }
} }
$(document).ready(function() { $(function() {
// Initially display the options for the selected plugin // Initially display the options for the selected plugin
changePluginOpts(); changePluginOpts();


Expand Down
2 changes: 1 addition & 1 deletion js/indexes.js
Expand Up @@ -91,7 +91,7 @@ function checkIndexType()
* @name document.ready * @name document.ready
* @memberOf jQuery * @memberOf jQuery
*/ */
$(document).ready(function() { $(function() {
checkIndexType(); checkIndexType();
checkIndexName("index_frm"); checkIndexName("index_frm");
$('#select_index_type').live('change', function(event){ $('#select_index_type').live('change', function(event){
Expand Down

0 comments on commit 0c4b876

Please sign in to comment.