B2G/gaia/apps/costcontrol/js/widget.js
// Reuse fte panel to display errors
Reuse fte panel to display errors
Reuse fte panel to display errors
function showSimError(status) {
    var fte = document.getElementById('fte-view');
    var leftPanel = document.getElementById('left-panel');
    var rightPanel = document.getElementById('right-panel');
    fte.setAttribute('aria-hidden', false);
    leftPanel.setAttribute('aria-hidden', true);
    rightPanel.setAttribute('aria-hidden', true);
    var className = 'widget-' + status;
    document.getElementById('fte-icon').classList.add(className);
    Common.localize(fte.querySelector('p:first-child'), className + '-heading');
    Common.localize(fte.querySelector('p:last-child'), className + '-meta');
  }
function showSimError ( status ) { var fte = document . getElementById ( 'fte-view' ) ; var leftPanel = document . getElementById ( 'left-panel' ) ; var rightPanel = document . getElementById ( 'right-panel' ) ; fte . setAttribute ( 'aria-hidden' , false ) ; leftPanel . setAttribute ( 'aria-hidden' , true ) ; rightPanel . setAttribute ( 'aria-hidden' , true ) ; var className = 'widget-' + status ; document . getElementById ( 'fte-icon' ) . classList . add ( className ) ; Common . localize ( fte . querySelector ( 'p:first-child' ) , className + '-heading' ) ; Common . localize ( fte . querySelector ( 'p:last-child' ) , className + '-meta' ) ; }
Reuse fte panel to display errors
Reuse fte panel to display errors