src/cobra/static/cobra/scripts/global/forms.js
// Handle field toggles for the Create Volume source type field
Handle field toggles for the Create Volume source type field
Handle field toggles for the Create Volume source type field
function update_volume_source_displayed_fields (field) {
      var $this = $(field),
        base_type = $this.val();
      $this.find("option").each(function () {
        if (this.value !== base_type) {
          $("#id_" + this.value).closest(".form-group").hide();
        } else {
          $("#id_" + this.value).closest(".form-group").show();
        }
      });
    }
function update_volume_source_displayed_fields ( field ) { var $this = $ ( field ) , base_type = $this . val ( ) ; $this . find ( "option" ) . each ( function ( ) { if ( this . value !== base_type ) { $ ( "#id_" + this . value ) . closest ( ".form-group" ) . hide ( ) ; } else { $ ( "#id_" + this . value ) . closest ( ".form-group" ) . show ( ) ; } } ) ; }
Handle field toggles for the Create Volume source type field
Handle field toggles for the Create Volume source type field