mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	Update ISO - update embedded jsonObj after calling UpdateISO API.
This commit is contained in:
		
							parent
							
								
									5e61be67fd
								
							
						
					
					
						commit
						4549552904
					
				@ -498,6 +498,9 @@ function doEditISO2($actionLink, $detailsTab, $midmenuItem1, $readonlyFields, $e
 | 
				
			|||||||
		    $midmenuItem1.find("#first_row").text(name.substring(0,25)); 
 | 
							    $midmenuItem1.find("#first_row").text(name.substring(0,25)); 
 | 
				
			||||||
		    $detailsTab.find("#displaytext").text(displaytext);		           
 | 
							    $detailsTab.find("#displaytext").text(displaytext);		           
 | 
				
			||||||
		    $detailsTab.find("#ostypename").text($detailsTab.find("#ostypename_edit option:selected").text());				    
 | 
							    $detailsTab.find("#ostypename").text($detailsTab.find("#ostypename_edit option:selected").text());				    
 | 
				
			||||||
 | 
							    jsonObj.name = name;
 | 
				
			||||||
 | 
							    jsonObj.displaytext = displaytext;
 | 
				
			||||||
 | 
							    //jsonObj.ostypeid = parseInt(newOsTypeId);  	//to fix when ISO is available to test (i.e. status is not "No route to host")				
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	});
 | 
						});
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
@ -520,6 +523,9 @@ function doEditISO2($actionLink, $detailsTab, $midmenuItem1, $readonlyFields, $e
 | 
				
			|||||||
		    async: false,
 | 
							    async: false,
 | 
				
			||||||
		    success: function(json) {			    	        						       					    
 | 
							    success: function(json) {			    	        						       					    
 | 
				
			||||||
		        setBooleanReadField(newIsPublic, $detailsTab.find("#ispublic"));
 | 
							        setBooleanReadField(newIsPublic, $detailsTab.find("#ispublic"));
 | 
				
			||||||
 | 
							        setBooleanReadField(newIsFeatured, $detailsTab.find("#isfeatured"));		       
 | 
				
			||||||
 | 
							        jsonObj.ispublic = (newIsPublic == "true");
 | 
				
			||||||
 | 
							        jsonObj.isfeatured = (newIsFeatured == "true");
 | 
				
			||||||
    		}
 | 
					    		}
 | 
				
			||||||
	    });
 | 
						    });
 | 
				
			||||||
	}	
 | 
						}	
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user