@@ -201,8 +201,8 @@ define([
201201 // vpSubsetEditor
202202 this . state . variable . subsetEditor = new vpSubsetEditor ( this , "vp_instanceVariable" , true ) ;
203203 this . state . allocate . subsetEditor = new vpSubsetEditor ( this , "vp_instanceAllocate" , true ) ;
204- this . state . variable . subsetEditor . hideButton ( ) ;
205- this . state . allocate . subsetEditor . hideButton ( ) ;
204+ this . state . variable . subsetEditor . disableButton ( ) ;
205+ this . state . allocate . subsetEditor . disableButton ( ) ;
206206
207207 this . ALLOW_SUBSET_TYPES = that . pointer . subsetEditor . getAllowSubsetTypes ( ) ;
208208
@@ -213,7 +213,7 @@ define([
213213 this . state . allocate . insEditor = new vpInstanceEditor ( this , "vp_instanceAllocate" , 'vp_allocateInsEditContainer' ) ;
214214
215215 that . state . variable . insEditor . show ( ) ;
216- that . state . allocate . insEditor . hide ( ) ;
216+ that . state . allocate . insEditor . show ( ) ;
217217
218218 // variable load
219219 that . reloadInsEditor ( ) ;
@@ -241,19 +241,19 @@ define([
241241 $ ( that . wrapSelector ( '.CodeMirror' ) ) . removeClass ( 'selected' ) ;
242242 if ( insEditorType == 'variable' ) {
243243 // variable
244- that . state . variable . insEditor . show ( ) ;
245- that . state . allocate . insEditor . hide ( ) ;
244+ // that.state.variable.insEditor.show();
245+ // that.state.allocate.insEditor.hide();
246246 that . pointer = that . state . variable ;
247247 $ ( that . wrapSelector ( '.variable .CodeMirror' ) ) . addClass ( 'selected' ) ;
248248 } else if ( insEditorType == 'allocate' ) {
249249 // allocate
250- that . state . variable . insEditor . hide ( ) ;
251- that . state . allocate . insEditor . show ( ) ;
250+ // that.state.variable.insEditor.hide();
251+ // that.state.allocate.insEditor.show();
252252 that . pointer = that . state . allocate ;
253253 $ ( that . wrapSelector ( '.allocate .CodeMirror' ) ) . addClass ( 'selected' ) ;
254254 } else {
255- that . state . variable . insEditor . hide ( ) ;
256- that . state . allocate . insEditor . hide ( ) ;
255+ // that.state.variable.insEditor.hide();
256+ // that.state.allocate.insEditor.hide();
257257 }
258258 } ) ;
259259
@@ -281,20 +281,20 @@ define([
281281
282282 if ( insEditorType == 'variable' ) {
283283 // variable
284- that . state . variable . insEditor . show ( ) ;
285- that . state . allocate . insEditor . hide ( ) ;
284+ // that.state.variable.insEditor.show();
285+ // that.state.allocate.insEditor.hide();
286286 that . state . selectedBox = 'variable' ;
287287 that . pointer = that . state . variable ;
288288 } else if ( insEditorType == 'allocate' ) {
289289 // allocate
290- that . state . variable . insEditor . hide ( ) ;
291- that . state . allocate . insEditor . show ( ) ;
290+ // that.state.variable.insEditor.hide();
291+ // that.state.allocate.insEditor.show();
292292 that . state . selectedBox = 'allocate' ;
293293 that . pointer = that . state . allocate ;
294294 } else {
295295 that . state . selectedBox = '' ;
296- that . state . variable . insEditor . hide ( ) ;
297- that . state . allocate . insEditor . hide ( ) ;
296+ // that.state.variable.insEditor.hide();
297+ // that.state.allocate.insEditor.hide();
298298 }
299299 } ) ;
300300
@@ -388,9 +388,9 @@ define([
388388 var varType = varObj . type ;
389389
390390 if ( that . ALLOW_SUBSET_TYPES . includes ( varType ) ) {
391- tempPointer . subsetEditor . showButton ( ) ;
391+ tempPointer . subsetEditor . enableButton ( ) ;
392392 } else {
393- tempPointer . subsetEditor . hideButton ( ) ;
393+ tempPointer . subsetEditor . disableButton ( ) ;
394394 }
395395 } ;
396396
0 commit comments