Removed inline call in libraries/display_tbl.lib.php to confirmAction()
for 'Calculate Real End' action on large InnoDB tables.
This commit is contained in:
@@ -2034,6 +2034,19 @@ $(document).ready(function() {
|
||||
})
|
||||
//end Drop Primary Key/Index
|
||||
|
||||
//Calculate Real End for InnoDB
|
||||
$('#real_end_input').live('click', function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
var question = PMA_messages['strOperationTakesLongTime'];
|
||||
|
||||
$(this).PMA_confirm(question, '', function() {
|
||||
return true;
|
||||
})
|
||||
return false;
|
||||
})
|
||||
//end Calculate Real End for InnoDB
|
||||
|
||||
}, 'top.frame_content'); //end $(document).ready() for db_structure.php
|
||||
|
||||
/**
|
||||
|
@@ -34,6 +34,7 @@ $js_messages['strDroppingProcedure'] = __('Dropping Procedure');
|
||||
$js_messages['strDeleteTrackingData'] = __('Delete tracking data for this table');
|
||||
$js_messages['strDeletingTrackingData'] = __('Deleting tracking data');
|
||||
$js_messages['strDroppingPrimaryKeyIndex'] = __('Dropping Primary Key/Index');
|
||||
$js_messages['strOperationTakesLongTime'] = __('This operation could take a long time. Proceed anyway?');
|
||||
|
||||
/* For blobstreaming */
|
||||
$js_messages['strBLOBRepositoryDisableStrongWarning'] = __('You are about to DISABLE a BLOB Repository!');
|
||||
|
@@ -341,9 +341,9 @@ onsubmit="return (checkFormElementInRange(this, 'session_max_rows', '<?php echo
|
||||
|
||||
// prepare some options for the End button
|
||||
if ($is_innodb && $unlim_num_rows > $GLOBALS['cfg']['MaxExactCount']) {
|
||||
$input_for_real_end = '<input type="hidden" name="find_real_end" value="1" />';
|
||||
$input_for_real_end = '<input id="real_end_input" type="hidden" name="find_real_end" value="1" />';
|
||||
// no backquote around this message
|
||||
$onclick = ' onclick="return confirmAction(\'' . PMA_jsFormat(__('This operation could take a long time. Proceed anyway?'), false) . '\')"';
|
||||
$onclick = '';
|
||||
} else {
|
||||
$input_for_real_end = $onclick = '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user