' + ' ' + ' ' + ' | ' + ' ' + ' ' + ' | ' + ' ' + $('').text(db + '.' + table).html() + ' | ' + '
');
$('#id_scroll_tab table').first().append($newTableLine);
$($newTableLine).find('.scroll_tab_struct').on('click', function () {
DesignerMove.startTabUpd(db, table);
});
$($newTableLine).on('click', '.designer_Tabs2,.designer_Tabs', function () {
DesignerMove.selectTab($(this).attr('designer_url_table_name'));
});
$($newTableLine).find('.scroll_tab_checkbox').on('click', function () {
$(this).attr('title', function (i, currentvalue) {
return currentvalue === Messages.strHide ? Messages.strShow : Messages.strHide;
});
DesignerMove.visibleTab(this, $(this).val());
});
var $tablesCounter = $('#tables_counter');
$tablesCounter.text(parseInt($tablesCounter.text(), 10) + 1);
};
/**
* This function shows modal with Go buttons where required in designer
* @param {object} form
* @param {string} heading
* @param {string} type
*
* @return {object} modal;
*/
DesignerMove.displayModal = function (form, heading, type) {
var modal = $(type);
modal.modal('show');
modal.find('.modal-body').first().html(form);
$(type + 'Label').first().html(heading);
return modal;
};
DesignerMove.addOtherDbTables = function () {
var $selectDb = $('