made privileges tab of database responsive

Signed-off-by: Manish Bisht <manish.bisht490@gmail.com>
This commit is contained in:
Manish Bisht 2017-06-18 18:57:07 +05:30
parent 44c762fcb0
commit fee038cec1
2 changed files with 7 additions and 0 deletions

View File

@ -472,4 +472,7 @@ AJAX.registerOnload('server_privileges.js', function () {
if ($("#edit_user_dialog").length > 0) {
addOrUpdateSubmenu();
}
var windowwidth = $(window).width();
$('#responsivetable').css('max-width', (windowwidth - 35 ) + 'px');
});

View File

@ -2332,6 +2332,7 @@ function PMA_getHtmlForSpecificDbPrivileges($db)
// check the privileges for a particular database.
$html_output = '<form id="usersForm" action="server_privileges.php">';
$html_output .= Url::getHiddenInputs($db);
$html_output .= '<div class="width100">';
$html_output .= '<fieldset>';
$html_output .= '<legend>' . "\n"
. Util::getIcon('b_usrcheck.png')
@ -2348,11 +2349,13 @@ function PMA_getHtmlForSpecificDbPrivileges($db)
. "\n"
. '</legend>' . "\n";
$html_output .= '<div id="responsivetable" class="responsivetable">';
$html_output .= '<table id="dbspecificuserrights" class="data">';
$html_output .= PMA_getHtmlForPrivsTableHead();
$privMap = PMA_getPrivMap($db);
$html_output .= PMA_getHtmlTableBodyForSpecificDbOrTablePrivs($privMap, $db);
$html_output .= '</table>';
$html_output .= '</div>';
$html_output .= '<div class="floatleft">';
$html_output .= Template::get('select_all')
@ -2369,6 +2372,7 @@ function PMA_getHtmlForSpecificDbPrivileges($db)
);
$html_output .= '</fieldset>';
$html_output .= '</div>';
$html_output .= '</form>';
} else {
$html_output .= PMA_getHtmlForViewUsersError();