_km9.js 3.3 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 _km9=new _lcm("_km9");_km9._jgn=function(_rlm){this._vhm=_rlm;this._4le();}; _km9._5z2=function(){this._ypk=new _jgk(this._2oh("cboUnits"), null, _frh._53g('CCHL_CSSLengthUnits'), this);this._xpl=new _jgk(this._2oh("cboBlur"), null, _frh._53g('BlurPreset'), this);var _wx5=this._vhm[0].selectSingleNode("v2_dropShadow");this._nsb=_wx5?_erh._woh(_wx5):_erh._cnh("v2_dropShadow");var _usg=this._vhm[0].selectSingleNode("v2_dropShadow")!=null;this._2oh("chkDropShadow").checked=_usg;this._7t8();this._9xh(_usg);};_km9._7t8=function(){_4qn._2b5( this._2oh( "btnShadowColor" ), this._nsb.getAttribute( "color" ) );var _iil=this._2oh("txtOffset");var _msi=new _84j(this._nsb.getAttribute("shadowOffset"));_iil.value=_msi._197();_iil.onkeypress=_4qn._tx;var _35k=this._2oh("cboUnits")._35k;_35k._hwc(_msi._jkl()||"px");_35k=this._2oh("cboBlur")._35k;_35k._hwc(this._nsb.getAttribute("blurPreset")?this._nsb.getAttribute("blurPreset"):"averageBlur");this._2oh( "txtTransparency" ).value = this._nsb.getAttribute( "transparency" );};_km9._9xh=function(_zwk){this._obb("fsContainer", _zwk);this._pj8("btnShadowColor", _zwk);this._cb5("txtOffset", _zwk);this._obb("divTransparency", _zwk);this._cb5("txtTransparency", _zwk);this._ypk._mqh(_zwk);this._xpl._mqh(_zwk);};_km9._o46=function(){this._fdm();};_km9._fdm=function(){if(this._ypk){this._ypk._fdm();delete this._ypk;}if(this._xpl){this._xpl._fdm();delete this._xpl;}delete this._vhm;delete this._nsb;};_km9._fl7=function(){var _usg=this._2oh("chkDropShadow").checked;this._9xh(_usg);};_km9._986=function(btn){var _uxm=this._nsb.getAttribute("color");_8fm._jgn("cchl/dialogs/_1zm", btn, true, _uxm, null, this, false, false);};_km9._io9=function(_e5m){switch(_e5m._b2g()){case "_1zm":var _uxm=_e5m._6ik();if(_uxm){_8qn._qie(this._nsb, "color", _uxm);}else{this._nsb.removeAttribute("color");}this._7t8();break;}};_km9._y9b=function(){this._nsb.setAttribute("shadowOffset", this._2oh("txtOffset").value + this._ypk._qik());};_km9._g67=function(_35k,_mzj){var _uxm=_mzj?_mzj.getAttribute("value"):_35k._qik();if(_35k==this._xpl){this._nsb.setAttribute("blurPreset", _uxm);}else if(_35k==this._ypk){this._nsb.setAttribute("shadowOffset", this._2oh("txtOffset").value + _uxm);}};_km9._hf4=function(_oz7){_u0n._5rc( this._nsb, this._qf8( "txtTransparency" ), "transparency" );if(_oz7!==false){this._7t8();}};_km9._bgn=function(){this._6ll();this._3le();};_km9._6ll=function(){_erh._ybb();if(this._2oh("txtOffset").value.length>0){var _uxm=_cgm._6ie(this._2oh("txtOffset").value)._fkk();if(_uxm){this._nsb.setAttribute("shadowOffset", _uxm + this._2oh( "cboUnits" )._35k._qik());}else{this._nsb.removeAttribute("shadowOffset");}}else{this._nsb.removeAttribute("shadowOffset");}this._nsb.setAttribute("blurPreset", this._2oh( "cboBlur" )._35k._qik());var _usg=this._2oh("chkDropShadow").checked;for(var i=0;i<this._vhm.length;i++){var n=this._vhm[i];_8qn._cqh(n, "v2_dropShadow");if(_usg){n.appendChild(_erh._woh(this._nsb));}}_erh._iee(true);};_km9._wph=function(e){if(e.keyCode==_4qn._x8j){if ((e.target.nodeName=="INPUT" )&&( e.target.type=="text" ) ){this._y9b(false);this._hf4(false);}}this._lb6(e);};