Skip to content

Commit 37d3083

Browse files
author
Ana
committed
hide attribute list when a new file is about to be loaded
1 parent a7ac89b commit 37d3083

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/SPECTACLES.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ var SPECTACLES = function (divToBind, jsonFileData, callback) {
417417
//a function to open a file from disk
418418
//found this method here: http://www.javascripture.com/FileReader
419419
SPECT.jsonLoader.openLocalFile = function (event) {
420-
420+
421421
//the input object
422422
var input = event.target;
423423

@@ -1010,6 +1010,9 @@ var SPECTACLES = function (divToBind, jsonFileData, callback) {
10101010
//OPEN FILE
10111011
this.openLocalFile = function () {
10121012

1013+
//If an object is selected, this will make sure to hide the attributes.
1014+
SPECT.attributes.attributeListDiv.hide("slow");
1015+
10131016
//this should show a form that lets a user open a file
10141017
$("#OpenLocalFile").css("visibility", "visible");
10151018
$(".Spectacles_blackout").show();

0 commit comments

Comments
 (0)