diff --git a/website/include/importerapp.js b/website/include/importerapp.js index b3850cb..aeb54b6 100644 --- a/website/include/importerapp.js +++ b/website/include/importerapp.js @@ -21,7 +21,7 @@ ImporterApp = function () this.extensions = []; this.importerButtons = null; this.extensionButtons = null; - this.dialog = null; + this.aboutDialog = null; this.readyForTest = null; }; @@ -45,7 +45,7 @@ ImporterApp.prototype.Init = function () var myThis = this; var top = document.getElementById ('top'); this.importerButtons = new ImporterButtons (top); - this.importerButtons.AddLogo ('Online 3D Viewer v 0.5.2', function () { myThis.WelcomeDialog (); }); + this.importerButtons.AddLogo ('Online 3D Viewer v 0.5.2', function () { myThis.ShowAboutDialog (); }); this.importerButtons.AddButton ('images/openfile.png', 'Open File', function () { myThis.OpenFile (); }); this.importerButtons.AddButton ('images/fitinwindow.png', 'Fit In Window', function () { myThis.FitInWindow (); }); this.importerButtons.AddToggleButton ('images/fixup.png', 'images/fixupgray.png', 'Enable/Disable Fixed Up Vector', function () { myThis.SetFixUp (); }); @@ -57,7 +57,7 @@ ImporterApp.prototype.Init = function () this.importerButtons.AddButton ('images/right.png', 'Set Up Vector (-X)', function () { myThis.SetNamedView ('-x'); }); this.extensionButtons = new ExtensionButtons (top); - this.dialog = new FloatingDialog (); + this.aboutDialog = new FloatingDialog (); window.addEventListener ('resize', this.Resize.bind (this), false); this.Resize (); @@ -71,14 +71,10 @@ ImporterApp.prototype.Init = function () var fileInput = document.getElementById ('file'); fileInput.addEventListener ('change', this.FileSelected.bind (this), false); - var testMode = this.InitTestMode (); - var hasHashModel = false; - if (!testMode) { - window.onhashchange = this.LoadFilesFromHash.bind (this); - hasHashModel = this.LoadFilesFromHash (); - } + window.onhashchange = this.LoadFilesFromHash.bind (this); + var hasHashModel = this.LoadFilesFromHash (); if (!hasHashModel) { - this.WelcomeDialog (); + this.ShowAboutDialog (); } }; @@ -105,14 +101,14 @@ ImporterApp.prototype.AddExtension = function (extension) extension.Init (extInterface); }; -ImporterApp.prototype.WelcomeDialog = function () +ImporterApp.prototype.ShowAboutDialog = function () { var dialogText = [ '