diff --git a/Marlin/configurator/js/configurator.js b/Marlin/configurator/js/configurator.js index 87464e7e9..68ce56dcc 100644 --- a/Marlin/configurator/js/configurator.js +++ b/Marlin/configurator/js/configurator.js @@ -59,13 +59,16 @@ var configuratorApp = (function(){ // private variables and functions go here var self, pi2 = Math.PI * 2, + has_boards = false, has_config = false, has_config_adv = false, boards_file = 'boards.h', config_file = 'Configuration.h', config_adv_file = 'Configuration_adv.h', $config = $('#config_text'), $config_adv = $('#config_adv_text'), boards_list = {}, - therms_list = {}; + therms_list = {}, + total_config_lines, + total_config_adv_lines; // Return this anonymous object as configuratorApp return { @@ -75,6 +78,9 @@ var configuratorApp = (function(){ init: function() { self = this; // a 'this' for use when 'this' is something else + // Set up the form + this.setupConfigForm(); + // Make tabs for the fieldsets var $fset = $('#config_form fieldset'); var $tabs = $('