File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 9696 return list . length ;
9797 }
9898
99- // ***********************************************************************************************************************
100- // ************************************************** constructor code ***************************************************
101- // ***********************************************************************************************************************
102- returnObj . addNewModel ( ) ;
103-
104- // check if an openFile was provided in the querystring and if yes, try to load a model from that file
105- if ( ACS . openFile ) {
99+ returnObj . loadQueryStringModel = function ( ) {
106100 var xmlObj ;
107101 var httpRequest = new XMLHttpRequest ( ) ;
108- httpRequest . onreadystatechange = function ( ) {
102+ httpRequest . onreadystatechange = function ( ) {
109103 if ( httpRequest . readyState === XMLHttpRequest . DONE && httpRequest . status === 200 ) {
110104 list [ 0 ] . setFilename ( ACS . openFile . substring ( ACS . openFile . lastIndexOf ( '/' ) + 1 ) ) ;
111105 xmlObj = $ . parseXML ( httpRequest . responseText ) ;
121115 // has been installed in order not to confuse the enduser, who often will have no knowledge of URLs and querystrings.
122116 }
123117 }
118+ // ***********************************************************************************************************************
119+ // ************************************************** constructor code ***************************************************
120+ // ***********************************************************************************************************************
121+ returnObj . addNewModel ( ) ;
122+
124123 return returnObj ;
125124}
Original file line number Diff line number Diff line change 105105 clipBoard = ACS . clipBoard ( ) ;
106106 view = ACS . view ( modelList , clipBoard ) ;
107107 ACS . areStatus . setModelList ( modelList ) ;
108+ if ( ACS . openFile ) modelList . loadQueryStringModel ( ) ;
108109
109110 return returnObj ;
110- }
111+ }
You can’t perform that action at this time.
0 commit comments