Fix undefined variables in js/designer/ files

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2019-06-02 18:09:07 -03:00
parent 1510ddcb67
commit b1f6c422e8
4 changed files with 23 additions and 0 deletions

View File

@ -7,6 +7,10 @@
* @version $Id$
*/
/* global contr */ // js/designer/init.js
/* global fromArray */ // js/designer/move.js
/* global pmaThemeImage */ // js/messages.php
var DesignerHistory = {};
var historyArray = []; // Global array to store history objects

View File

@ -3,6 +3,12 @@
* Initialises the data required to run Designer, then fires it up.
*/
/* global DesignerOfflineDB */ // js/designer/database.js
/* global DesignerHistory */ // js/designer/history.js
/* global DesignerMove */ // js/designer/move.js
/* global DesignerPage */ // js/designer/page.js
/* global designerConfig */ // templates/database/designer/main.twig
var jTabs;
var hTabs;
var contr;

View File

@ -3,6 +3,11 @@
* @package PhpMyAdmin-Designer
*/
/* global DesignerObjects */ // js/designer/objects.js
/* global DesignerHistory, historyArray, selectField */ // js/designer/history.js
/* global contr, db, designerTablesEnabled, displayField, hTabs, jTabs, selectedPage, server */ // js/designer/init.js
/* global DesignerPage */ // js/designer/page.js
var DesignerMove = {};
var change = 0; // variable to track any change in designer layout.
@ -10,6 +15,9 @@ var staying = 0; // variable to check if the user stayed after seeing the confi
var showRelationLines = true;
var alwaysShowText = false;
var colName;
var tabName;
AJAX.registerTeardown('designer/move.js', function () {
$(document).off('fullscreenchange');
$('#selflink').show();

View File

@ -1,3 +1,8 @@
/* global DesignerOfflineDB */ // js/designer/database.js
/* global db, selectedPage */ // js/designer/init.js
/* global DesignerMove */ // js/designer/move.js
/* global DesignerObjects */ // js/designer/objects.js
var DesignerPage = {};
DesignerPage.showTablesInLandingPage = function (db) {