After PK creation, did not obey the reload parameter received

This commit is contained in:
Marc Delisle
2010-10-31 16:42:24 -04:00
parent 1c9ec21792
commit 00d786e983

View File

@@ -1,3 +1,4 @@
/* vim: set expandtab sw=4 ts=4 sts=4: */
/** /**
* @fileoverview functions used on the table structure page * @fileoverview functions used on the table structure page
* @name Table Structure * @name Table Structure
@@ -90,6 +91,9 @@ $(document).ready(function() {
if(data.success == true) { if(data.success == true) {
PMA_ajaxShowMessage(data.message); PMA_ajaxShowMessage(data.message);
$(this).remove(); $(this).remove();
if (typeof data.reload != 'undefined') {
window.parent.frame_content.location.reload();
}
} }
else { else {
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error); PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error);