File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 965965 }
966966 } ) ;
967967
968- if ( selectedTemplateObj ) {
969- $ . ajax ( {
970- url : createURL ( "listTemplateOvfProperties&id=" + selectedTemplateObj . id ) ,
971- dataType : "json" ,
972- async : false ,
973- success : function ( json ) {
974- ovfProps = json . listtemplateovfpropertiesresponse . ovfproperty ;
975- }
976- } ) ;
977- }
978-
979968 var $step = $ ( '.step.sshkeyPairs:visible' ) ;
980969 if ( ovfProps == null || ovfProps . length === 0 ) {
981970 $step . addClass ( 'next-skip-ovf-properties' ) ;
984973 }
985974 } ,
986975
987- // Step PRE-8: Configure OVF Properties (if available) for the template
988- function ( args ) {
989- args . response . success ( {
990- data : {
991- ovfProperties : ovfProps
992- }
993- } ) ;
994- } ,
995-
996976 // Step 8: Review
997977 function ( args ) {
998978 var $step = $ ( '.step.review:visible' ) ;
Original file line number Diff line number Diff line change 18391839 }
18401840 } ,
18411841 tabFilter : function ( args ) {
1842- $ . ajax ( {
1843- url : createURL ( "listTemplateOvfProperties&id=" + args . context . templates [ 0 ] . id ) ,
1844- dataType : "json" ,
1845- async : false ,
1846- success : function ( json ) {
1847- ovfprops = json . listtemplateovfpropertiesresponse . ovfproperty ;
1848- }
1849- } ) ;
18501842 var hiddenTabs = [ ] ;
1851- if ( ovfprops == null || ovfprops . length === 0 ) {
1852- hiddenTabs . push ( "ovfpropertiestab" ) ;
1853- }
18541843 return hiddenTabs ;
18551844 } ,
18561845 tabs : {
26262615 }
26272616 }
26282617 } )
2629- } ,
2630-
2631- /**
2632- * OVF properties tab (only displayed when OVF properties are available)
2633- */
2634- ovfpropertiestab : {
2635- title : 'label.ovf.properties' ,
2636- listView : {
2637- id : 'ovfproperties' ,
2638- fields : {
2639- label : {
2640- label : 'label.label'
2641- } ,
2642- description : {
2643- label : 'label.description'
2644- } ,
2645- value : {
2646- label : 'label.value'
2647- }
2648- } ,
2649- hideSearchBar : true ,
2650- dataProvider : function ( args ) {
2651- $ . ajax ( {
2652- url : createURL ( "listTemplateOvfProperties" ) ,
2653- data : {
2654- id : args . context . templates [ 0 ] . id
2655- } ,
2656- success : function ( json ) {
2657- var ovfprops = json . listtemplateovfpropertiesresponse . ovfproperty ;
2658- var listDetails = [ ] ;
2659- for ( index in ovfprops ) {
2660- var prop = ovfprops [ index ] ;
2661- var det = { } ;
2662- det [ 'label' ] = prop [ 'label' ] ;
2663- det [ 'description' ] = prop [ 'description' ] ;
2664- det [ 'value' ] = prop [ 'value' ] ;
2665- listDetails . push ( det ) ;
2666- }
2667- args . response . success ( {
2668- data : listDetails
2669- } ) ;
2670- } ,
2671-
2672- error : function ( json ) {
2673- args . response . error ( parseXMLHttpResponse ( json ) ) ;
2674- }
2675- } ) ;
2676-
2677- }
2678- }
2679- }
2618+ }
26802619 }
26812620 }
26822621 }
You can’t perform that action at this time.
0 commit comments