diff --git a/ChangeLog b/ChangeLog
index aa0b9abbca..9741b3a21b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@ phpMyAdmin - ChangeLog
+ rfe #1414 Allow specifying controlport
+ PMA_DBI functions in database interface libraries renamed to be compliant with PEAR standards
+ rfe #1412 Creating a view from an empty set of results
++ Improved layout on db and table operations pages
4.0.2.0 (not yet released)
+ center loading indicator for navigation refresh, related to bug #3920
diff --git a/db_operations.php b/db_operations.php
index 4f4d1b14a6..3c7dced6a1 100644
--- a/db_operations.php
+++ b/db_operations.php
@@ -208,6 +208,8 @@ if (empty($is_info)) {
$_REQUEST['db_collation'] = PMA_getDbCollation($db);
$is_information_schema = PMA_is_system_schema($db);
+$response->addHTML('
');
+
if (!$is_information_schema) {
if ($cfgRelation['commwork']) {
/**
@@ -273,6 +275,7 @@ if (!$is_information_schema) {
} // end if
} // end if (!$is_information_schema)
+$response->addHTML('
');
// not sure about displaying the PDF dialog in case db is information_schema
if ($cfgRelation['pdfwork'] && $num_tables > 0) {
diff --git a/js/functions.js b/js/functions.js
index f07294a656..184e3cceb9 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -3849,3 +3849,35 @@ $('a.login-link').live('click', function (e) {
e.preventDefault();
window.location.reload(true);
});
+
+/**
+ * Dynamically adjust the width of the boxes
+ * on the table and db operations pages
+ */
+(function () {
+ function DynamicBoxes() {
+ var $boxContainer = $('#boxContainer');
+ if ($boxContainer.length) {
+ var minWidth = $boxContainer.data('box-width');
+ var viewport = $(window).width() - $('#pma_navigation').width();
+ var slots = Math.floor(viewport / minWidth);
+ $boxContainer.children()
+ .each(function () {
+ if (viewport < minWidth) {
+ $(this).width(minWidth);
+ } else {
+ $(this).css('width', ((1 / slots) * 100) + "%");
+ }
+ })
+ .removeClass('clearfloat')
+ .filter(':nth-child(' + slots + 'n+1)')
+ .addClass('clearfloat');
+ }
+ }
+ AJAX.registerOnload('functions.js', function () {
+ DynamicBoxes();
+ });
+ $(function () {
+ $(window).resize(DynamicBoxes);
+ });
+})();
\ No newline at end of file
diff --git a/libraries/operations.lib.php b/libraries/operations.lib.php
index 13bb4e4dbd..f98ac93156 100644
--- a/libraries/operations.lib.php
+++ b/libraries/operations.lib.php
@@ -626,10 +626,13 @@ function PMA_getHtmlForOrderTheTable($columns)
. htmlspecialchars($fieldname['Field']) . '' . "\n";
}
$html_output .= ' ' . __('(singly)') . ' '
- . ''
+ . ' '
+ . ''
+ . ''
+ . ''
+ . ''
. ''
. '