Permalink
Browse files

Merge remote-tracking branch 'origin/master'

  • Loading branch information...
2 parents 0b3ef72 + 5c6f742 commit 0c4b876d1be69af801a5aea7991125601113e6db @weblate weblate committed Apr 21, 2012
View
@@ -18,7 +18,7 @@
* Change charset
*/
-$(document).ready(function() {
+$(function() {
/**
* Ajax event handlers for 'Rename Database'
View
@@ -26,7 +26,7 @@
*/
function loadResult(result_path, table_name, link, ajaxEnable)
{
- $(document).ready(function() {
+ $(function() {
if(ajaxEnable) {
/** Hides the results shown by the delete criteria */
var $msg = PMA_ajaxShowMessage();
@@ -64,7 +64,7 @@ function loadResult(result_path, table_name, link, ajaxEnable)
*/
function deleteResult(result_path, msg, ajaxEnable)
{
- $(document).ready(function() {
+ $(function() {
/** Hides the results shown by the browse criteria */
$("#table-info").hide();
$('#browse-results').hide();
@@ -94,7 +94,7 @@ function deleteResult(result_path, msg, ajaxEnable)
});
}
-$(document).ready(function() {
+$(function() {
/** Hide the table link in the initial search result */
var icon = PMA_getImage('s_tbl.png', '', {'id': 'table-image'}).toString();
$("#table-info").prepend(icon).hide();
@@ -225,4 +225,4 @@ $(document).ready(function() {
PMA_ajaxRemoveMessage($msgbox);
})
})
-}, 'top.frame_content'); // end $(document).ready()
+}, 'top.frame_content'); // end $()
View
@@ -117,7 +117,7 @@ function PMA_adjustTotals() {
$summary.find('.tbl_overhead').text(overheadSum + " " + byteUnits[overhead_magnitude]);
}
-$(document).ready(function() {
+$(function() {
/**
* Ajax Event handler for 'Insert Table'
*
@@ -488,4 +488,4 @@ $(document).ready(function() {
return false;
}) //end Calculate Real End for InnoDB
-}, 'top.frame_content'); // end $(document).ready()
+}, 'top.frame_content'); // end $()
View
@@ -8,7 +8,7 @@
* Toggles the hiding and showing of each plugin's options
* according to the currently selected plugin from the dropdown list
*/
-$(document).ready(function() {
+$(function() {
$("#plugins").change(function() {
$("#format_specific_opts div.format_specific_options").hide();
var selected_plugin_name = $("#plugins option:selected").val();
@@ -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
*/
-$(document).ready(function() {
+$(function() {
$("input[type='radio'][name='sql_structure_or_data']").change(function() {
var comments_are_present = $("#checkbox_sql_include_comments").prop("checked");
var show = $("input[type='radio'][name='sql_structure_or_data']:checked").val();
@@ -65,7 +65,7 @@ function toggle_structure_data_opts(pluginName)
}
}
-$(document).ready(function() {
+$(function() {
$("input[type='radio'][name='latex_structure_or_data']").change(function() {
toggle_structure_data_opts("latex");
});
@@ -99,7 +99,7 @@ function toggle_save_to_file()
}
}
-$(document).ready(function() {
+$(function() {
toggle_save_to_file();
$("input[type='radio'][name='output_format']").change(toggle_save_to_file);
});
@@ -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
*/
-$(document).ready(function() {
+$(function() {
var $create = $("#checkbox_sql_create_table_statements");
var $create_options = $("#ul_create_table_statements input");
$create.change(function() {
@@ -144,7 +144,7 @@ $(document).ready(function() {
/**
* Disables the view output as text option if the output must be saved as a file
*/
-$(document).ready(function() {
+$(function() {
$("#plugins").change(function() {
var active_plugin = $("#plugins option:selected").val();
var force_file = $("#force_file_" + active_plugin).val();
@@ -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);
});
/**
* Sets up the interface for Javascript-enabled browsers since the default is for
* Javascript-disabled browsers
*/
-$(document).ready(function() {
+$(function() {
if ($("input[type='hidden'][name='export_method']").val() != "custom-no-form") {
$("#quick_or_custom").show();
}
@@ -208,7 +208,7 @@ $(document).ready(function() {
/**
* Disables the "Dump some row(s)" sub-options when it is not selected
*/
-$(document).ready(function() {
+$(function() {
$("input[type='radio'][name='allrows']").change(function() {
if ($("input[type='radio'][name='allrows']").prop("checked")) {
$("label[for='limit_to']").fadeTo('fast', 0.4);
View
@@ -533,7 +533,7 @@ function checkTableEditForm(theForm, fieldsCnt)
return true;
} // enf of the 'checkTableEditForm()' function
-$(document).ready(function() {
+$(function() {
/**
* 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
@@ -654,7 +654,7 @@ var last_shift_clicked_row = -1;
* Row highlighting in horizontal mode (use "live"
* so that it works also for pages reached via AJAX)
*/
-/*$(document).ready(function() {
+/*$(function() {
$('tr.odd, tr.even').live('hover',function(event) {
var $tr = $(this);
$tr.toggleClass('hover',event.type=='mouseover');
@@ -1070,7 +1070,7 @@ function pdfPaperSize(format, axis)
/**
* Jquery Coding for inline editing SQL_QUERY
*/
-$(document).ready(function() {
+$(function() {
$("a.inline_edit_sql").live('click', function() {
if ($('#sql_query_edit').length) {
// An inline query editor is already open,
@@ -1330,7 +1330,7 @@ function PMA_ajaxRemoveMessage($this_msgbox)
}
}
-$(document).ready(function() {
+$(function() {
/**
* Allows the user to dismiss a notification
* created with PMA_ajaxShowMessage()
@@ -1935,7 +1935,7 @@ jQuery.fn.PMA_sort_table = function(text_selector) {
*
* Attach Ajax Event handlers for Create Table
*/
-$(document).ready(function() {
+$(function() {
/**
* Attach event handler to the submit action of the create table minimal form
@@ -2100,7 +2100,7 @@ $(document).ready(function() {
* jQuery coding for 'Table operations'. Used on tbl_operations.php
* Attach Ajax Event handlers for Table operations
*/
-$(document).ready(function() {
+$(function() {
/**
*Ajax action for submitting the "Alter table order by"
**/
@@ -2222,7 +2222,7 @@ $(document).ready(function() {
*
* @see $cfg['AjaxEnable']
*/
-$(document).ready(function() {
+$(function() {
$("#drop_db_anchor").live('click', function(event) {
event.preventDefault();
@@ -2244,15 +2244,15 @@ $(document).ready(function() {
}); // end $.get()
}); // end $.PMA_confirm()
}); //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/
* display_create_database.lib.php is used, ie main.php and server_databases.php
*
* @see $cfg['AjaxEnable']
*/
-$(document).ready(function() {
+$(function() {
$('#create_database_form.ajax').live('submit', function(event) {
event.preventDefault();
@@ -2288,12 +2288,12 @@ $(document).ready(function() {
}
}); // end $.post()
}); // end $().live()
-}); // end $(document).ready() for Create Database
+}); // end $() for Create Database
/**
* Attach Ajax event handlers for 'Change Password' on main.php
*/
-$(document).ready(function() {
+$(function() {
/**
* Attach Ajax event handler on the change password anchor
@@ -2379,13 +2379,13 @@ $(document).ready(function() {
*
* @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
* 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
// the Create table dialog
PMA_verifyColumnsProperties();
@@ -2450,7 +2450,7 @@ var $enum_editor_dialog = null;
/**
* Opens the ENUM/SET editor and controls its functions
*/
-$(document).ready(function() {
+$(function() {
$("a.open_enum_editor").live('click', function() {
// Get the name of the column that is being edited
var colname = $(this).closest('tr').find('input:first').val();
@@ -2623,7 +2623,7 @@ $(document).ready(function() {
});
});
-$(document).ready(function() {
+$(function() {
PMA_convertFootnotesToTooltips();
});
@@ -3020,7 +3020,7 @@ $(window).load(function () {
/**
* Vertical pointer
*/
-$(document).ready(function() {
+$(function() {
$('.vpointer').live('hover',
//handlerInOut
function(e) {
@@ -3030,9 +3030,9 @@ $(document).ready(function() {
$('.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
*/
@@ -3130,7 +3130,7 @@ $(document).ready(function() {
window.parent.frame_navigation.PMA_reloadRecentTable();
}
});
-}); // end of $(document).ready()
+}); // end of $()
/**
* Creates a message inside an object with a sliding effect
@@ -3215,7 +3215,7 @@ function PMA_slidingMessage(msg, $obj)
*
* @see $cfg['AjaxEnable']
*/
-$(document).ready(function() {
+$(function() {
$("#drop_tbl_anchor").live('click', function(event) {
event.preventDefault();
@@ -3237,14 +3237,14 @@ $(document).ready(function() {
}); // end $.get()
}); // end $.PMA_confirm()
}); //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.
*
* @see $cfg['AjaxEnable']
*/
-$(document).ready(function() {
+$(function() {
$("#truncate_tbl_anchor.ajax").live('click', function(event) {
event.preventDefault();
@@ -3279,12 +3279,12 @@ $(document).ready(function() {
}); // end $.get()
}); // end $.PMA_confirm()
}); //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.
*/
-$(document).ready(function() {
+$(function() {
var elm = $('#sqlquery');
if (elm.length > 0 && typeof CodeMirror != 'undefined') {
codemirror_editor = CodeMirror.fromTextArea(elm[0], {
@@ -3407,7 +3407,7 @@ loadJavascript=function(file) {
}
};
-$(document).ready(function() {
+$(function() {
/**
* Theme selector.
*/
@@ -3478,14 +3478,14 @@ function printPage()
}
}
-$(document).ready(function() {
+$(function() {
$('input#print').click(printPage);
});
/**
* 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) {
$("#floating_menubar")
.css({
View
@@ -200,7 +200,7 @@ function insertDataAndClose() {
closeGISEditor();
}
-$(document).ready(function() {
+$(function() {
// Remove the class that is added due to the URL being too long.
$('span.open_gis_editor a').removeClass('formLinkSubmit');
View
@@ -43,7 +43,7 @@ function matchFile(fname)
}
}
}
-$(document).ready(function() {
+$(function() {
// Initially display the options for the selected plugin
changePluginOpts();
View
@@ -91,7 +91,7 @@ function checkIndexType()
* @name document.ready
* @memberOf jQuery
*/
-$(document).ready(function() {
+$(function() {
checkIndexType();
checkIndexName("index_frm");
$('#select_index_type').live('change', function(event){
Oops, something went wrong.

0 comments on commit 0c4b876

Please sign in to comment.