public/javascripts/matrix.js in pact_broker-2.79.1 vs public/javascripts/matrix.js in pact_broker-2.80.0

- old
+ new

@@ -18,23 +18,28 @@ } } function showApplicableTextBoxes(selectorizor) { var selectorizorType = selectorizor.val(); + setTextboxVisibility(selectorizor, '.version', false); + setTextboxVisibility(selectorizor, '.branch', false); + setTextboxVisibility(selectorizor, '.environment', false); + setTextboxVisibility(selectorizor, '.tag', false); + if( selectorizorType === 'specify-version') { setTextboxVisibility(selectorizor, '.version', true); - setTextboxVisibility(selectorizor, '.tag', false); } else if( selectorizorType === 'specify-latest-tag' || selectorizorType === 'specify-all-tagged') { - setTextboxVisibility(selectorizor, '.version', false); setTextboxVisibility(selectorizor, '.tag', true); } - else if ( selectorizorType === 'specify-all-versions' || selectorizorType === 'specify-latest') { - setTextboxVisibility(selectorizor, '.version', false); - setTextboxVisibility(selectorizor, '.tag', false); + else if( selectorizorType === 'specify-latest-branch') { + setTextboxVisibility(selectorizor, '.branch', true); } + else if ( selectorizorType === 'specify-environment') { + setTextboxVisibility(selectorizor, '.environment', true); + } - if (selectorizorType === 'specify-latest' || selectorizorType === 'specify-latest-tag') { + if (selectorizorType === 'specify-latest' || selectorizorType === 'specify-latest-tag' || selectorizorType === 'specify-latest-branch') { toggleLatestFlag(selectorizor, true); } else { toggleLatestFlag(selectorizor, false); } }