src/js/plugins/transfer-back.js
function sourceControl(contextControl) {
    var tocheck = contextControl.find('.transfer-scroll').find('input')
    var checknum = tocheck.length
    var targetText = contextControl
      .find('.transfer-header')
      .find('label span.num')
    var header = contextControl.find('.transfer-header input')

    $(header)
      .prop('checked', false)
      .removeClass('semi-checked')

    if (checknum < 1) {
      $(header).prop('disabled', true)
    } else {
      $(header).prop('disabled', false)
    }

    $(targetText).text(checknum)
  }
function sourceControl(contextControl) {
    var tocheck = contextControl.find('.transfer-scroll').find('input')
    var checknum = tocheck.length
    var targetText = contextControl
      .find('.transfer-header')
      .find('label span.num')
    var header = contextControl.find('.transfer-header input')

    $(header)
      .prop('checked', false)
      .removeClass('semi-checked')

    if (checknum < 1) {
      $(header).prop('disabled', true)
    } else {
      $(header).prop('disabled', false)
    }

    $(targetText).text(checknum)
  }
function sourceControl ( contextControl ) { var tocheck = contextControl . find ( '.transfer-scroll' ) . find ( 'input' ) var checknum = tocheck . length var targetText = contextControl . find ( '.transfer-header' ) . find ( 'label span.num' ) var header = contextControl . find ( '.transfer-header input' ) $ ( header ) . prop ( 'checked' , false ) . removeClass ( 'semi-checked' ) if ( checknum < 1 ) { $ ( header ) . prop ( 'disabled' , true ) } else { $ ( header ) . prop ( 'disabled' , false ) } $ ( targetText ) . text ( checknum ) }
controllo elementi source
controllo elementi source