_d0g.js 3.4 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. var _d0g=new _lcm("_d0g");_d0g._jgn=function(_zpi){this._93i=_zpi;this._4le();};_d0g._5z2=function(){this._cye=this._93i.selectSingleNode("indentation");var _ozj=this._53g('IndentType');this._egd=new _pgk(this._2oh("divIndentType"), _ozj, this);var _uxm="none";var _0ja=false;if(this._cye){_0ja=true;_uxm=this._cye.getAttribute("type");}this._egd._uab(_pgk._lee(_ozj, "value", _uxm));if(this._cye){this._75i=this._cye.getAttribute("indentationLength");var _qxm=this._cye.getAttribute("indentationUnits");if(_qxm==""){_qxm="px";}this._75i+= _qxm;}else{this._75i=_qkk._qik("IndentLength");}this._2sl=new _84j(this._75i);var txt=this._2oh("txtLengthIndent");txt.value=this._2sl._197();var _ozj=_frh._53g("CCHL_CSSLengthUnits");_pgk._lj2(_ozj, "%");this._lmg=new _jgk(this._2oh("cboUnitsIndent"), null, _ozj, this);this._lmg._hwc(this._2sl._jkl()?this._2sl._jkl():"px");var _eyk=this._cye?(this._cye.getAttribute("outdent")=="true"): false;if(_eyk){this._2oh("radioOutdent").checked=true;}else{this._2oh("radioIndent").checked=true;}var _3kh=(this._cye&&!_eyk)?this._cye.getAttribute("startLevel"):"";_3kh=_3kh||"";this._2oh("txtStartLevel").value=_3kh;var _z1j=(this._cye&&_eyk)?this._cye.getAttribute("startLevel"):"3";_z1j=_z1j||"";this._2oh("txtStopLevel").value=_z1j;_d0g._zy3(_0ja);};_d0g._o46=function(){this._egd._fdm();delete this._egd;this._lmg._fdm();delete this._lmg;delete this._75i;delete this._2sl;};_d0g._pe4=function(_a6k,_mzj,_fii){if(_a6k==this._egd){var _0ja=true;if(_mzj.getAttribute( "value" )=="none" ){_0ja=false;}this._zy3(_0ja);}};_d0g._zy3=function(_zwk){this._obb("divIndentLength", _zwk);if(this._lmg){this._lmg._mqh(_zwk);}this._cb5("txtLengthIndent", _zwk);this._obb("fsIndentDirection", _zwk);this._8q3("radioIndent", _zwk);this._8q3("radioOutdent", _zwk);if(_zwk){_d0g._dv9();}else{this._obb("divStartLevel", false);this._cb5("txtStartLevel", false);this._obb("divStopLevel", false);this._cb5("txtStopLevel", false);}};_d0g._2q2=function(_q1c){this._obb("divStartLevel", _q1c);this._cb5("txtStartLevel", _q1c);this._obb("divStopLevel", !_q1c);this._cb5("txtStopLevel", !_q1c);};_d0g._dv9=function(){var _fdh=this._2oh("radioIndent");var _yvl=_fdh.checked;_d0g._2q2(_yvl);};_d0g._6ll=function(){var _mzj=this._egd._885();var _ugh=_mzj.getAttribute("value");_erh._ybb();if(_ugh=="none"&&this._cye){this._93i.removeChild(this._cye);}else if(_ugh!="none"){var _3kh=this._2oh("txtStartLevel").value;var _z1j=this._2oh("txtStopLevel").value;var _eyk=this._2oh("radioOutdent").checked;var _efl=_eyk?"true":"false";var _aif=_erh._h56(this._93i, "indentation");_aif.setAttribute("type", _ugh);var _w6e=_cgm._6ie(this._2oh("txtLengthIndent").value)._fkk();_aif.setAttribute( "indentationLength", _w6e?_w6e:"" );_aif.setAttribute("indentationUnits", this._lmg._qik());_aif.setAttribute("outdent", _efl);_aif.removeAttribute("startLevel");if(_eyk){if(_z1j){_aif.setAttribute("startLevel", _z1j);}}else{if(_3kh&&parseInt(_3kh, 10)>0){_aif.setAttribute("startLevel", _3kh);}}}_erh._iee();};_d0g._pv8=function(){var txtInput=this._2oh("txtStopLevel");if(txtInput.value<1){_gem(_frh._c6j('IDS_HAL_ERR_INVALID_MIN', _8gm._fd7(1)));txtInput.value=1;return false;}return true;};_d0g._bgn=function(){if(this._pv8()){_d0g._6ll();this._1gn();}};