project/src/main/webapp/shared.js
/** Removes any extra inputs initialized by scripts */
Removes any extra inputs initialized by scripts
Removes any extra inputs initialized by scripts
function removeExtraInputs(className) {
  if ($(className).prevAll().length > 2) {
    const otherName = className === '#interests' ? '#skills' : '#interests';
    $(otherName).prev().remove();
    $(className).prev().prev().remove();
  }
}
function removeExtraInputs ( className ) { if ( $ ( className ) . prevAll ( ) . length > 2 ) { const otherName = className === '#interests' ? '#skills' : '#interests' ; $ ( otherName ) . prev ( ) . remove ( ) ; $ ( className ) . prev ( ) . prev ( ) . remove ( ) ; } }
Removes any extra inputs initialized by scripts
Removes any extra inputs initialized by scripts