Fixing Issue #13584, adjusting create table input when import config notification is present

Signed-off-by: Ryan Lanese <rlanese@asu.edu>
This commit is contained in:
ryanml 2017-09-18 22:14:13 -07:00 committed by Ryan Lanese
parent 7fe393aea1
commit aa7434096b

View File

@ -618,8 +618,19 @@ function setupConfigTabs() {
});
}
function adjustPrefsNotification() {
var $prefsAutoLoad = $('#prefs_autoload');
var $tableNameControl = $('#table_name_col_no');
var $prefsAutoShowing = ($prefsAutoLoad.css('display') !== 'none');
if ($prefsAutoShowing && $tableNameControl.length) {
$tableNameControl.css('top', '120px');
}
}
AJAX.registerOnload('config.js', function () {
setupConfigTabs();
adjustPrefsNotification();
// tab links handling, check each 200ms
// (works with history in FF, further browser support here would be an overkill)