B2G/gaia/apps/costcontrol/js/settings/settings.js
// Check settings and enable / disable done button
Check settings and enable / disable done button
Check settings and enable / disable done button
function checkSettings() {
    var closeSettingsButton = document.getElementById('close-settings');
    var lowLimit = document.getElementById('low-limit');
    var lowLimitInput = document.getElementById('low-limit-input');
    var lowLimitError = currentMode === 'PREPAID' && lowLimit.checked &&
                        lowLimitInput.value.trim() === '';
    lowLimitInput.classList[lowLimitError ? 'add' : 'remove']('error');
    closeSettingsButton.disabled = lowLimitError;
  }
function checkSettings ( ) { var closeSettingsButton = document . getElementById ( 'close-settings' ) ; var lowLimit = document . getElementById ( 'low-limit' ) ; var lowLimitInput = document . getElementById ( 'low-limit-input' ) ; var lowLimitError = currentMode === 'PREPAID' && lowLimit . checked && lowLimitInput . value . trim ( ) === '' ; lowLimitInput . classList [ lowLimitError ? 'add' : 'remove' ] ( 'error' ) ; closeSettingsButton . disabled = lowLimitError ; }
Check settings and enable / disable done button
Check settings and enable / disable done button